boot2docker

Port forwarding in docker-machine?

主宰稳场 提交于 2019-11-27 06:29:42
Since boot2docker is deprecated I've switched to docker-machine but I don't know how to open a port from docker-machine . In boot2docker I could do like this: boot2docker ssh -L 27017:localhost:27017 This would forward port 27017 from VirtualBox to localhost 27017 as long as the SSH connection is open. Note that I'm not looking for a way to open the port permanently in VirtualBox. How can I achieve this with docker-machine ? You can still access the VBoxmanage.exe command from the VirtualBox used by docker machine: VBoxManage controlvm "boot2docker-vm" natpf1 "tcp-port27017,tcp,,27017,,27017";

Giving a docker container a routable ip address

你离开我真会死。 提交于 2019-11-27 06:21:09
I am running this on ubuntu 14.04 and have set docker0 to a static ip which is then routed to from the public ip through the firewall. I am trying to set up my backend API to run in a docker container and am confused by a couple things. 1.) How would I map docker0 's ip to the container's ip such that docker0 would know to send the incoming packets to the container (dynamically if possible). 2.) If not already done in such a way, how could I make it so that I don't have to set this up every time I do a fresh run of that docker container? Thanks in advance! nucatus I assume you want to have an

How to install docker-compose on Windows

落花浮王杯 提交于 2019-11-27 05:07:34
问题 If I type the following commands in boot2docker as shown on the docker website: curl -L https://github.com/docker/compose/releases/download/1.1.0/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose chmod +x /usr/local/bin/docker-compose When I type the following commands to check if the installation was successful, I get: /usr/local/bin/docker-compose: line 1: syntax error: unexpected newline So, how can I install docker-compose on boot2docker ? 回答1: Update 7th of november

Boot2Docker on Mac - Accessing Local Files

给你一囗甜甜゛ 提交于 2019-11-27 02:43:51
问题 I've just set up boot2docker on my Mac. How do I go about mounting a local directory on my Mac so that it's accessible all the way through to a running Docker container? Thanks for your help! 回答1: As of October 16, 2014, Docker supports mounting directories in the /Users path seamlessly. From the Docker blog: With this release we are addressing the most common issue: sharing directories between your Mac and your containers. Using Docker 1.3 with the corresponding version of boot2docker, host

Docker Compose mount Windows folder

烈酒焚心 提交于 2019-11-27 02:22:18
问题 I am using Docker Toolbox in Windows and am trying to mount a Windows folder in a docker-compose.yml file like this: nginx: image: nginx:latest container_name: test_server ports: - "80:80" volumes: - /sss:/c/data/www:ro environment: - VIRTUAL_HOST=test.local My objective is to mount C:\data\www to the boot2docker VM image which is already created by Docker Toolbox and then from there to the nginx container inside of it. Unfortunately it's not working. I get a folder sss inside the boot2docker

Docker add warfile to official Tomcat image

流过昼夜 提交于 2019-11-27 01:06:28
问题 I pulled official Docker image for Tomcat by running this command. docker run -it --rm tomcat:8.0 By using this as base image I need to build new image that contains my war file in the tomcat webapps folder. I created Dockerfile like this. From tomcat8 ADD warfile /usr/local/tomcat When I run this Dockerfile by building image I am not able to see Tomcat front page. Can anybody tell me how to add my warfile to official Tomcat images webapp folder. 回答1: Reading from the documentation of the

Docker - how can I copy a file from an image to a host?

[亡魂溺海] 提交于 2019-11-27 00:08:29
问题 My question is related to this question on copying files from containers to hosts; I have a Dockerfile that fetches dependencies, compiles a build artifact from source, and runs an executable. I also want to copy the build artifact (in my case it's a .zip produced by sbt dist in '../target/`, but I think this question also applies to jars, binaries, etc. docker cp works on containers, not images; do I need to start a container just to get a file out of it? In a script, I tried running /bin

docker error: /var/run/docker.sock: no such file or directory

柔情痞子 提交于 2019-11-27 00:08:05
问题 I am new to docker. I have a shell script that loads data into impala and I want a docker file that runs builds an image and run the container. I am on mac, installed boot2docker and have the DOCKER_HOST env set up. bash-3.2$ docker info Containers: 0 Images: 0 Storage Driver: aufs Root Dir: /mnt/sda1/var/lib/docker/aufs Dirs: 0 Execution Driver: native-0.2 Kernel Version: 3.15.3-tinycore64 Debug mode (server): true Debug mode (client): false Fds: 10 Goroutines: 10 EventsListeners: 0 Init

Docker/Boot2Docker: Set HTTP/HTTPS proxies for docker on OS X

五迷三道 提交于 2019-11-26 23:52:00
问题 In short : How can I set the HTTP/HTTPS proxies for Docker on Mac OS X? In detail : I run Docker (1.12) on Mac OS X behind a proxy. I followed the installation instructions and installed boot2docker. This is working fine if I pull from my network-internal Docker registry. However, I get the following error when pulling from docker.io: machine:~ me$ docker run ubuntu echo hello world Unable to find image 'ubuntu' locally Pulling repository ubuntu 2014/06/30 13:23:26 Get https://index.docker.io

Docker error: client and server don't have same version

对着背影说爱祢 提交于 2019-11-26 22:35:27
问题 Since I just updated Docker to 1.1.0 I get: Error response from daemon: client and server don't have same version (client : 1.13, server: 1.12) Do you know how to fix this? I switched back to 1.0.1 and everything works again. 回答1: It looks like you need to upgrade the VM after installing boot2docker: if you are upgrading from boot2docker 0.12 or later, you can update your existing virtual machine (after upgrading using the installer) using boot2docker stop && boot2docker download &&