boot2docker

What does the DOCKER_HOST variable do?

不羁的心 提交于 2019-12-18 10:07:46
问题 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

Windows + Boot2Docker, How to add D:\ drive to be accessible from within docker? [duplicate]

旧城冷巷雨未停 提交于 2019-12-18 05:54:59
问题 This question already has answers here : What's the best way to share files from Windows to Boot2docker VM? (5 answers) Closed 3 years ago . Basically, when you open boot2docker app, inside it you can cd /c/Users , right? Now I want to be able to cd /d to access my D:\ directory. I don't know squat about VM so please explain like you would to a 5-years old. This is in a way related to this other question on how to move docker images to another drive. The whole idea is to free up the system

Dockerfile and dev/test/prod environment

China☆狼群 提交于 2019-12-18 04:23:12
问题 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

boot2docker vm forgets changes when restarted

强颜欢笑 提交于 2019-12-18 04:19:10
问题 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...........

How do I SSH into the boot2docker host vm that the Vagrant 1.6 Docker Provider sets up?

怎甘沉沦 提交于 2019-12-17 21:48:01
问题 I'm on OSX and I'd like to be able to SSH into the host vm in order to: Get access to a native docker environment. This facilitates understanding and debugging port forwarding issues. Vagrant rsync seems to leave a lot of unused synced directories that's eating up disk space that I'd like to recover. To be clear, this question is NOT about ssh:ing into the docker containers that the Vagrant provider creates, but into the intermediate boot2docker host vm that Vagrant creates. I know that a

Docker daemon config file on boot2docker / docker-machine / Docker Toolbox

爱⌒轻易说出口 提交于 2019-12-17 15:34:15
问题 Where can I find docker daemon config file on boot2docker machine? According to this topic: Dockerfile: Docker build can't download packages: centos->yum, debian/ubuntu->apt-get behind intranet I want to set '--dns' in DOCKER_OPTS , but I can't find this config file either at /etc/default or anywhere else. 回答1: Inside boot2docker ( boot2docker ssh ) / docker-machine ( docker-machine ssh default ) , open or create the file /var/lib/boot2docker/profile and add the following line: EXTRA_ARGS="-

Boot2Docker: can't get ports forwarding to work

不想你离开。 提交于 2019-12-17 14:07:12
问题 I'm playing with boot2docker (docker 1.6) on windows 8.1. I wanted to make myself machine container to play with ruby and I want to be able to connect to rails server from my windows host. To start with small steps first I want to connect to my container from my boot2docker VM. I attach my docker file below, it builds without a problem and I can run a container from it. I do it like so: docker run -it -p 3000:3000 3564860f7afd /bin/bash Then in this container I say: cd ~/myapp && bundle exec

Boot2Docker: can't get ports forwarding to work

折月煮酒 提交于 2019-12-17 14:07:08
问题 I'm playing with boot2docker (docker 1.6) on windows 8.1. I wanted to make myself machine container to play with ruby and I want to be able to connect to rails server from my windows host. To start with small steps first I want to connect to my container from my boot2docker VM. I attach my docker file below, it builds without a problem and I can run a container from it. I do it like so: docker run -it -p 3000:3000 3564860f7afd /bin/bash Then in this container I say: cd ~/myapp && bundle exec

boot2docker startup script to mount local shared folder with host

非 Y 不嫁゛ 提交于 2019-12-17 10:38:09
问题 I'm running boot2docker 1.3 on Win7. I want to connect a shared folder. In the VirtualBox Manager under the image properties->shared folders I've added the folder I've want and named it "c/shared". The "auto-mount" and "make permanent" boxes are checked. When boot2docker boots, it isn't mounted though. I have to do an additional: sudo mount -t vboxsf c/shared /c/shared for it to show up. Since I need that for every time I'll ever use docker, I'd like that to just run on boot, or just already

How to mount a host directory in a Docker container

一笑奈何 提交于 2019-12-16 22:12:08
问题 I am trying to mount a host directory into a Docker container so that any updates done on the host is reflected into the Docker containers. Where am I doing something wrong. Here is what I did: kishore$ cat Dockerfile FROM ubuntu:trusty RUN apt-get update RUN apt-get -y install git curl vim CMD ["/bin/bash"] WORKDIR /test_container VOLUME ["/test_container"] kishore$ tree . ├── Dockerfile └── main_folder ├── tfile1.txt ├── tfile2.txt ├── tfile3.txt └── tfile4.txt 1 directory, 5 files kishore$