boot2docker

Docker complains about invalid certificate after update to v1.7.0

。_饼干妹妹 提交于 2019-11-29 23:41:48
After updating to Docker v1.7.0 (and also boot2docker), I'm getting the following error when running docker ps : x509: certificate is valid for 127.0.0.1, 10.0.2.15, not 192.168.59.103 Is this a known issue with this version, and what can I do to fix this? This is a known issue introduced in version 1.7.0 of boot2docker: https://github.com/boot2docker/boot2docker/issues/824 Update to boot2docker 1.7.1 Updating to boot2docker 1.7.1 fixes this issue, as described here . Options for boot2docker 1.7.0 It seems to be related to the way the network interfaces are coming up during boot. The following

How to mount a directory in the docker container to the host?

我们两清 提交于 2019-11-29 21:05:35
问题 It's quite easy to mount a host directory in the docker container. But I need the other way around. I use a docker container as a development environment for developing WordPress plugins. This docker container contains everything needed to run WordPress (MySQL, Apache, PHP and WordPress). I mount my plugin src folder from the host in the docker container, so that I can test my plugin during development. For debugging it would be helpful if my IDE running on the host has read access to the

How to access Docker container's web server from host

旧城冷巷雨未停 提交于 2019-11-29 19:57:34
I'm running under boot2docker 1.3.1. I have a Docker container running a web server via uwsgi --http :8080 . If I attach to the container I can browse the web site using lynx http://127.0.0.1:8080 so I know the server is working. I ran my container with: $ docker run -itP --expose 8080 uwsgi_app:0.2 It has the following details: $ docker ps CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 5248ad86596d uwsgi_app:0.2 "bash" 11 minutes ago Up 11 minutes 0.0.0.0:49159->8080/tcp cocky_hypatia $ docker inspect --format '{{ .NetworkSettings.IPAddress }}' 5248ad86596d 172.17.0.107 I thought I

What does the DOCKER_HOST variable do?

百般思念 提交于 2019-11-29 19:50:31
I'm new to Docker, using Boot2Docker on OSX. After booting it, this message is given: To connect the Docker client to the Docker daemon, please set export DOCKER_HOST=tcp://192.168.59.103:2375 Yet even without it, basic Docker commands (eg, docker run hello-world ) work fine. The install instructions aren't very informative: Note: If you see a message in the terminal that looks something like this: To connect the Docker client to the Docker daemon, please set: export DOCKER_HOST=tcp://192.168.59.103:2375 you can safely set the evironment variable as instructed. Knowing that it's "safe" doesn't

Docker Compose vs. Dockerfile - which is better?

爷,独闯天下 提交于 2019-11-29 18:32:38
I have been reading up and learning about Docker , and am trying to correctly choose the Django setup to use. So far there is either: Docker Compose or Dockerfile I understand that Dockerfiles are used in Docker Compose , but I am not sure if it is good practice to put everything in one large Dockerfile with multiple FROM commands for the different images? I want to use several different images that include: uwsgi nginx postgres redis rabbitmq celery with cron Please advise on what are best practices in setting up this type of environment using Docker . If it helps, I am on a Mac, so using

Enabling Remote API in Docker on Mac OS X (boot2docker)

五迷三道 提交于 2019-11-29 14:30:40
问题 I can't seem to figure out how to enable the remote API when using boot2docker. I am trying to use dockerode as follows: Docker = require('dockerode') docker = new Docker(socketPath: "/var/run/docker.sock") container = docker.getContainer('<my_container_id>') container.inspect (err, data) -> debug data Data is null, despite there being a container with the id ''. I suspect this is because there is no /var/run/docker.sock on the OS X host, and that I would need to use something like: var

Docker, can't reach “rails server” development from localhost:3000 using docker flag -p 3000:3000

孤人 提交于 2019-11-29 10:29:26
问题 I'm trying to use docker with rails, building an entire stack inside one container. My endgoal is to have an nginx/memcached/unicorn/rails/postgres stack with runit as the process manager. So far I have my app, ruby, and postgres installed. At this point I'm trying to test if everything is working correctly before I move on to nginx/memcached/unicorn. Here's my dockerfile: FROM ubuntu:trusty ADD . /app # Update repos RUN apt-get update # General RUN apt-get install -y git curl software

Logstash in Docker - config file not found when mounted though a volume

天大地大妈咪最大 提交于 2019-11-29 08:47:06
EDIT: It seems to be a boot2docker thing... works fine in an ubuntu vm running docker. I'm trying to fire up logstash in a Docker container but when I mount the config file as a volume, it doesn't seem to find it. Interestingly, if I start up the container with bash, I can see the config file in there and running the same command as what docker would, it works. Docker File FROM ubuntu:14.04 MAINTAINER cvallance RUN apt-get update RUN apt-get -yqq install openjdk-7-jre RUN apt-get -yqq install curl RUN mkdir /opt/logstash \ && cd /opt/logstash \ && curl -O https://download.elastic.co/logstash

Dockerfile and dev/test/prod environment

你。 提交于 2019-11-29 05:09:20
I want to create Dockerfile that will be able to build three different images (one at the moment). Those images differs only in configuration files. I was trying: creating three different docker files (doesn't work because dockerfile needs to be named Dockerfile and be in context root finding a way of passing parameters to docker build command - didn't find using ONBUILD command - I created one main file and three specific ones which were copying specific conf file into same directory in image (it doesn't work because of the same reason as in first point) passing docker file from stdin - it

boot2docker vm forgets changes when restarted

青春壹個敷衍的年華 提交于 2019-11-29 04:49:15
Basically any changes I make while SSHed into the VM are lost at restart of the VM. I am assuming the problem is associated with the error when I stop the VM. C:\Users\Tom>boot2docker stop error in run: Failed to stop machine "boot2docker-vm": exit status 1 But, I may just be doing something dumb. The sequence I followed is below (docker logo elided), you can see it losing the sample directory across the restart. C:\Users\Tom>boot2docker up Waiting for VM and Docker daemon to start.......................ooo Started. Writing C:\Users\Tom\.boot2docker\certs\boot2docker-vm\ca.pem Writing C:\Users