boot2docker

How to assign specific IP to container and make that accessible outside of VM host?

主宰稳场 提交于 2019-12-09 13:07:31
问题 I wish to make two of my containers available outside of the VM host on their separate, specific IP addresses ( 192.168.0.222 , 192.168.0.227 ), without port mapping. That means I wish to access any port directly on the containers by using its IP. I already have machines running in the network outside of the VM host in the range 192.168.0.1–192.168.0.221. Is this now possible with Docker 1.10.0, and if so, how? I'm on OS X 10.11 with docker version 1.10.0, build 590d5108 and docker-machine

boot2docker on windows - Can't access exposed port

为君一笑 提交于 2019-12-09 12:12:19
问题 I've installed boot2docker (full install) on Windows 7 and am trying to run the container port redirection demo: docker run --rm -i -t -p 80:80 nginx Which looks like it isn't quite finishing properly, it just stops and looks like this: When I open another git bash shell and run boot2docker ip I get 192.168.59.103, and when I pop that in chrome I get Error code: ERR_CONNECTION_TIMED_OUT It works fine for me with plain docker on Ubuntu 14.04. What else do I need to do to make it work with

Sharing code directory from host with boot2docker does not call inotify on guest

感情迁移 提交于 2019-12-08 17:05:26
问题 I am trying to setup a dev environment with boot2docker/Virtualbox. Sharing a folder on the host with the docker container works, but since it is shared through a Virtualbox shared folder inotify does not trigger inside the container (and the code is not reloaded). Is there a way to get the source folder into a docker image with boot2docker that still triggers inotify in the container? I would rather not use polling, since using polling inside a Virtualbox share has a heavy CPU cost on the

I have working with dockerfile to build and image and it build and run successfully but tomcat is not up

若如初见. 提交于 2019-12-08 10:03:30
I am using Dockerfile to build an image. Content of Docker file: FROM ubuntu # Update Ubuntu RUN apt-get update && apt-get -y upgrade # Add oracle java 7 repository RUN apt-get -y install software-properties-common RUN add-apt-repository ppa:webupd8team/java RUN apt-get -y update # Accept the Oracle Java license RUN echo "oracle-java7-installer shared/accepted-oracle-license-v1-1 boolean true" | debconf-set-selections # Install Oracle Java RUN apt-get -y install oracle-java7-installer # Install tomcat RUN apt-get -y install tomcat7 RUN echo "JAVA_HOME=/usr/lib/jvm/java-7-oracle" >> /etc

Docker pull failed with request canceled while waiting for connection

瘦欲@ 提交于 2019-12-08 06:31:48
问题 I am trying to pull images to default docker machine. But I always get docker@default:/etc$ docker run hellow-world Unable to find image 'hellow-world:latest' locally docker: Error response from daemon: Get https://registry-1.docker.io/v2/: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers). See 'docker run --help'. docker@default:/etc$ Even if i give --dns option same error docker@default:/etc$ docker run hellow-world --dns=8.8.8.8 Unable

After upgrade Boot2Docker 1.5 to 1.6 error append:Failed to get machine “boot2docker-vm”: machine does not exist (Did you run `boot2docker init`?)

流过昼夜 提交于 2019-12-08 05:57:48
问题 After upgrade to docker 1.6 error in run: Failed to get machine "boot2docker-vm": machine does not exist (Did you run boot2docker init ?) boot2docker fail to run and nothing to do to restore. boot2docker.exe ssh error in run: Failed to get machine "boot2docker-vm": machine does not exist (Did you run `boot2docker init`?) and boot2docker.exe init error in run: Failed to get latest release: Get https://api.github.com/repos/boot2docker/boot2docker/releases: dial tcp: GetAddrInfoW: No such host

How to create image with my new jar file in Docker?

旧城冷巷雨未停 提交于 2019-12-08 03:58:06
问题 I'm very new to docker and need to deploy jar file into docker. So I have implemented "Hellow World" program and trying to create container as follows but I'm getting " curl: (56) Recv failure: Connection reset by peer " error while calling it. Help me please I have been working on this for 4 days. Dockerfile: ##### Version: 0.0.1 FROM ubuntu:14.04 MAINTAINER Siva "siva@example.com" RUN apt-get update #### installing JDK RUN apt-get install -y openjdk-7-jdk ADD dockertest.jar /usr/share/java/

Tomcat7 in debian:wheezy Docker instance fails to start

此生再无相见时 提交于 2019-12-08 01:01:52
问题 I'm trying to build a docker image for the first time using a debian image from Google (google/debian:wheezy), setting up OpenJDK7 on it and trying to setup Tomcat7. docker pull google/debian:wheezy docker run -i -t google/debian:wheezy bash Once I'm in bash, I install openjdk with apt-get update apt-get install openjdk-7-jre After a while, I get an error and I must run apt-get update --fix-missing apt-get install openjdk-7-jre apt-get install tomcat7 After Tomcat7 is installed, I try to

Docker node development environment on windows

徘徊边缘 提交于 2019-12-07 21:18:50
问题 I'm developing a simple NodeJS application. I use docker and it makes it very easy to deploy to production. This is my Dockerfile: FROM node COPY . /src RUN cd /src; npm install EXPOSE 3000 CMD ["node", "/src/express.js"] On my development environment (windows, boot2Docker) Docker is slowing me down, because for every small change I do, I have to re-build the Docker image and run the container and it takes a few minutes. I couldn't find a way to simply copy my source files from the host to

Unable to run Docker Toolbox on windows 10 home even after enabling virtualization from BIOS settings

旧街凉风 提交于 2019-12-07 20:37:13
问题 On running docker quickstart terminal I get the following error: Running pre-create checks... Error with pre-create check: "This computer doesn't have VT-X/AMD-v enabled. Enabling it in the BIOS is mandatory" Looks like something went wrong in step ´Checking if machine default exists´... Press any key to continue... I have tried everything from enabling the virtualization from the bios setting to reinstalling the toolbox but this error doesn't seem to go away. I read that since Windows 10