FAQ Database Discussion Community


Boot2docker very slow on Windows without shared folders

performance,docker,boot2docker
I have a Docker image with Oracle database and around 5 million rows that I need to process. My machine runs Windows 7, and I use Docker inside a Virtualbox VM running Ubuntu. The VM is configured with 2 GB RAM and 4 logical cores. The database is running inside...

Boot2Docker searching for docker-bootstrap.sock which does not exist

osx,docker,boot2docker,unix-socket,kubernetes
I am currently trying to set up kubernetes on a multi-docker container on CoreOS stack for AWS. To do this I need to set up etcd for flannel and am currently using this guide but am having problems at the first stage where I am suggested to run sudo sh...

How to run a Docker host inside a Docker container?

jenkins,docker,boot2docker
I have a Jenkins container running inside Docker and I want to use this Jenkins container to spin up other Docker containers when running integration tests etc. So my plan was to install Docker in the container but this doesn't seem to work so well for me. My Dockerfile looks...

Rebuild when files changes on docker

go,docker,boot2docker
i'm starting to work with docker (with boot2docker on Mac OSX) and golang, Whenever I make changes on my .go files I want to be visible on the docker image. Is there anyway to do this? Or docker is not the appropiate thing to do this? Thanks...

SocketError: No such file or directory - connect(2) for /var/run/docker.sock

ruby-on-rails,docker,boot2docker
I am trying to run a docker container inside a rails application, however I keep receiving the following error:- container = Docker::Container.create({'Image' => 'mitc/judge'}) Excon::Errors::SocketError: No such file or directory - connect(2) for /var/run/docker.sock (Errno::ENOENT)` The environment variables are set bash-3.2$ env | grep DOCKER DOCKER_HOST=tcp://192.168.99.100:2376 DOCKER_TLS_VERIFY=1 DOCKER_CERT_PATH=/Users/ayushlodha/.docker/machine/machines/dev The container...

Pushing files into private registry in Docker

docker,boot2docker,docker-registry
I have setup the private registry using docker run -t -i -p 5000:5000 registry and it is accessible from 192.168.59.103:5000 (I am using boot2docker). Now I have already pulled an image tutum/tomcat and when I try to push the image (docker push 192.168.59.103:5000/tomcat) into the registry after tagging it as...

Running 'docker-compose up' raises “No module named fnctl” error on Windows

windows,python-2.7,docker,boot2docker,docker-compose
Setup: Windows 7 Docker v1.6.0, installed as part of Boot2docker Docker-compose v1.2.0 I installed docker-compose using pip: pip install docker-compose And it seemed to install successfully. However, when I try to run: docker-compose up in the directory in which I have my docker-compose.yml definition, I get the following exception: Traceback...

Server Error when logging in to a private docker registry from docker in docker

docker,boot2docker,docker-registry
I'm using boot2docker and docker 1.4.1 and I'm running a Jenkins container that also runs Docker as a host (also version 1.4.1). However when I try to login to my Tutum private Docker registry using: sudo docker login -u=username -p=**** [email protected] tutum.co I end up with the following error: Server...

How can I create a docker image from the current system?

google-app-engine,docker,boot2docker
I want to create a Docker image after I SSH into the VM and download/config the project. Due to the nature of the project I cannot do this in the config file, it must be done by "freezing" the current system into an image. Is this possible? ...

Why does boot2docker, and port forwarding to my docker instances, periodically hang?

virtualbox,osx-yosemite,boot2docker
I have run the following command to forward sinatra and redis ports to my docker instance running in virtualbox on OSX: ports=( 4567 6379 ) for port in "${ports[@]}" do echo "Forwarding $port" VBoxManage modifyvm "boot2docker-vm" --natpf1 "tcpport$port,tcp,,$port,,$port" done However, periodically (like every 60 seconds) requests to either of these...

How can I run my docker container with installed Nginx?

php,nginx,docker,boot2docker,dockerfile
I have docker image with Dockerfile, that successfully build with docker build . command. The Dockerfile content is: FROM ubuntu RUN apt-get update && apt-get install -y nginx php5 php5-fpm ADD . /code How can I run my docker container to see that Nginx is work? UPDATE: When I try...

What's the best way to share files from Windows to Boot2docker VM

docker,boot2docker
I have make my code ready on Windows, but I find it's not easy to share to boot2docker. I also find that boot2docker can't persistent my changes. For example, I create a folder /temp, after I restart boot2docker, this folder disappears, it's very inconvenient. What is your way when you...

How do I modify a startup script in a docker container when it is stopped?

docker,boot2docker
We have a docker container which I run as: docker run --name myname -e PROPERTY1=VALUE1 -d image/name Dockerfile used to build the container: ADD start.sh / CMD ["/bin/bash","/start.sh"] Can I edit the file start.sh without rebuilding the container. My guess is stop the container edit the file start the container....

How to connect to Docker instance from a different VM

osx,docker,boot2docker
I have docker running on my Mac with boot2docker in a VirtualBox VM. I then added into my hosts file on my Mac: 127.0.0.1 nginx And on my Mac I can connect http://nginx in the browser and it load the website that is in the docker container. I also have...

boot2docker - Waiting for VM and Docker daemon to start

boot2docker
I installed boot2docker on my Windows machine. When I start it in the command prompt using "boot2docker up -v" it never starts and this is the output: Waiting for VM and Docker daemon to start... *THE FOLLOWING REPEATED MILLION TIMES* .Connecting to tcp://localhost:2022 (attempt #0) VM Host-only IP address: Waiting...

Dockerfile and dev/test/prod environment

docker,boot2docker,dockerfile
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...

Boot2Docker mannaging ports and openning webapplications

docker,boot2docker
I am using Boot2Docker in Yosemite trying to run swagger-io. In virtualbox, in the vm where docker runs I port forwarded port 8080. Then I run boot to boot2docker and cloned the repository $ git clone https://github.com/swagger-api/swagger-ui.git $ cd swagger-ui-builder $ docker build -t swagger-ui-builder . $ docker run -p...

gcloud connect to docker Daemon fail

google-app-engine,docker,google-compute-engine,boot2docker,managed-vm
I'm trying to test the new managed VM feature, following this tutorial (using OS X) The boot2docker installation it's okay. Executing $(boot2docker shellinit) give the following output: Writing /Users/guilhermetorres/.boot2docker/certs/boot2docker-vm/ca.pem Writing /Users/guilhermetorres/.boot2docker/certs/boot2docker-vm/cert.pem Writing /Users/guilhermetorres/.boot2docker/certs/boot2docker-vm/key.pem export DOCKER_HOST=tcp://192.168.59.103:2376 export DOCKER_CERT_PATH=/Users/guilhermetorres/.boot2docker/certs/boot2docker-vm export...

When I install docker on my Mac book, I get some trouble

boot2docker
Yesterday I installed boot2docker on my macbookpro and everything seems to works well. However when when I run "docker -d " it shows an error this is a client-only binary - running the docker daemon is not supported. While looking online for an answer it seems the docker binary needs...

Accessing docker container from iOS Simulator

ios-simulator,docker,boot2docker
I am using boot2docker to run Docker images. I know very well that I need to access the boot2docker's IP address in order to access the Docker container. Basically in terminal it is curl $(boot2docker ip):49155 When I do it this way in Chrome or Safari, everything seems fine. When...

Linking Docker Containers

docker,boot2docker
I have a nodejs app i'm trying to run in a docker container. My app uses mongodb and redis. I've pulled down both a mongo and redis container and dockerized my app. I started up my mongo and redis containers like: docker run -i -t --name redis -d redis docker...

Import images from kitematic to boot2docker

docker,boot2docker
I am on OS X. I have been using kitematic for some time now, but today I wanted to switch to boot2docker, as I sometimes find kitematic very abstract to the user. The problem I am facing is, is there a way to use all the images that I built...

Dockerfile 'RUN git clone' removes intermediate container

git,docker,boot2docker,git-clone
I using Boot2Docker on Windows 7 to build my developement environment with a Dockerfile. When i run docker build -t myimage dir/of/docker/file, then everything works fine until this line: RUN git clone --verbose https://github.com/zsh-users/antigen ~/.antigen/antigen The output of this line is: Step 12 : RUN git clone --verbose https://github.com/zsh-users/antigen ~/.antigen/antigen...

docker error when using log-driver=“syslog” on OS X

docker,osx-yosemite,syslog,boot2docker
docker error when using log-driver="syslog" on OS X I am trying to learn how to use 'docker' containers on OS X (10.10.3), I understand the differences with the standard Linux implementation ( need boot2docker VM) and I wonder if there is any impact on the way I can log messages...

boot2docker resulting in “Cannot connect to the Docker daemon. Is 'docker -d' running on this host?”

docker,riak,boot2docker
I'm new to docker and trying to run this project on OS X 10.10. Docker is installed through brew and looks good in the basics: ➜ docker-riak git:(develop) docker -v Docker version 1.6.2, build 7c8fca2 ➜ docker-riak git:(develop) boot2docker -v Boot2Docker-cli version: v1.6.2 Git commit: cb2c3bc Here's the error: ➜...

Error in build from Dockerfile for Ubuntu image with Mono installed

xamarin,mono,docker,ubuntu-14.04,boot2docker
I have the following docker file that I am attempting to use to build a Ubuntu image with mono. FROM ubuntu:14.04 MAINTAINER John Smith <[email protected]> RUN sudo apt-get update RUN sudo /bin/bash -l -c apt-get install wget RUN sudo /bin/bash -l -c apt-get http://download.mono-project.com/repo/xamarin.gpg RUN sudo apt-key add xamarin.gpg RUN...

Docker, no IPAddress in docker inspect

docker,boot2docker
I m using the following dockerfile : FROM ubuntu:14.04 MAINTAINER xxx xxx<[email protected]> # SSH RUN apt-get update && apt-get install -y openssh-server RUN mkdir /var/run/sshd RUN echo 'root:xxxxxxx' | chpasswd RUN sed -i 's/PermitRootLogin without-password/PermitRootLogin yes/' /etc/ssh/sshd_config # SSH login fix. Otherwise user is kicked off after login RUN sed...

boot2docker fails to start on windows 7

docker,windows-7-x64,boot2docker
I recently installed boot2docker on my windows 7 64bit machine with all dependencies (VirtualBox etc). However, when I executed it, it failed to start the docker server and preconfigured shell. From the cmd I could read the following exception: Failed to start machine "boot2docker-vm" ...

Boot2docker proxy on windows

docker,boot2docker
I have installed boot2docker on Windows. I've tried to configure the proxy with the help of the following link (https://github.com/boot2docker/boot2docker-cli/issues/230), but it didn't work. When I execute boot2docker download, I have the following error: boot2docker download Latest release for github.com/boot2docker/boot2docker is v1.6.0 Downloading boot2docker ISO image... error in run: Failed...

Building a Dockerfile with Vagrant and the Docker provider: multi-line command chaining returns error

docker,vagrant,boot2docker
I'm running Vagrant 1.7.2, building a Docker image via the docker provider. My Vagrantfile looks like this: # -*- mode: ruby -*- # vi: set ft=ruby : Vagrant.configure(2) do |config| config.vm.provider "docker" do |d| d.build_dir = "." d.force_host_vm = true end end I was optimizing Docker using the guidelines put...

Is it safe to delete docker logs generated at /var/lib/docker/containers/HASH

docker,boot2docker
The log is now is currently 13GB, I don't know if it safe to delete the log, and how to make the log smaller [email protected]:/var/lib/docker/containers/f1ac17e833be2e5d1586d34c51324178bd18f969d 1046cbb59f10eaa4bcf84be# ls -alh total 13G drwx------ 2 root root 4.0K Mar 6 08:35 . drwx------ 3 root root 4.0K Feb 24 11:00 .. -rw-r--r-- 1...

What's the right way to setup a development environment on OS X with Docker?

osx,docker,development-environment,boot2docker
Intro I can't figure out a good way to setup a development environment on OS X using Docker and Boot2Docker. The problem I'm hitting is how to manage the source code so that: I can modify the code on OS X using the tools (text editor, IDE, git, etc) I...

How can I make a HTTP request from one docker container to another linked container?

node.js,sinatra,docker,boot2docker,faraday
I have a docker container with an sinatra app inside, and another container with an node.js app. They are both linked through Fig. In my sinatra app I am making a HTTP Post request to the node.js app. For that I am using the Faraday gem. My questions is now...

How can I debug my docker container with phpStorm

php,docker,phpstorm,xdebug,boot2docker
Under the following IP my Container run successful in my Webbrowser http://192.168.99.100:32775 I have also create a volume to share files between my container and my filesystem docker run --name lampf -d -p 32775:80 -v /Users/sja/Sites/lamkepf2:/var/www/html --link=lampf_db:db codinglimo/apache_php540_gs_imgmck_pdflib9 Now I install also xDebug successful in my container with the following...

ssh into boot2docker - can you see -v folders from within boot2docker vm

docker,boot2docker
Can you do the following? ssh into boot2docker - and see -v folders from within boot2docker vm I am looking for this as I need to have a process(web pack-dev-server) to react on file changed events. This do not work with simple -h folders in docker?...

How to install nano on boot2docker

docker,boot2docker,nano
I'm running the boot2docker VM in windows and need to modify the init scripts within the VM. Currently my only option is VI, and it's a pain. I'd just like to use nano, but it's not available. It's running: [email protected]:/c$ uname -a Linux boot2docker 3.18.5-tinycore64 #1 SMP Sun Feb 1...

nginx in Docker on OS X doen't reload html

osx,nginx,docker,boot2docker
I tried to use nginx on boot2docker with OS X. I hope to start a web server. I tried with command below; docker run -d --name web -p 80:80 -v /Users/douglas/tmp/local_console:/usr/share/nginx/html:ro nginx Then I changed the content of index.html, and curl $(boot2docker ip), but the index.html is not changed. I...

Docker for Windows doesn't work

docker,boot2docker
I am trying to setup Docker on Windows 8.1. I was following this guide: https://docs.docker.com/installation/windows/#installation It seems nice and straight forward ... except it's not working for me. The installation passes allright. Then I run the Boot2Docker Start, it says it's initializing and then closes the command line windows. Some...

Run Boot2Docker from bash

osx,bash,docker,boot2docker
I have installed Boot2Docker on my Mac. By clicking on the app icon, a terminal window opens with some bash script running to prepare the docker vm and then you're good to go. My problem is, I want to write a bash script to run the Boot2Docker vm and then...

Dockerizing a gradle build on a Mac

gradle,docker,boot2docker
I'm trying to dockerize my Gradle build on a Mac by following the advice in this blog post: http://thediscoblog.com/blog/2014/06/13/docker-containers-with-gradle-in-4-steps/ But I'm using Docker on a Mac with boot2docker and it seems to work differently there. I already changed the gradle-docker plugin configuration to be using the Docker API and connect...

docker networking - Could not discover any bindable network interfaces

linux,osx,networking,docker,boot2docker
I am trying to execute a jar from within a docker container which tries to start a service and detects an IP and port of a remote service and tries to connect to it. But as soon as I do that I get this exception - Exception occured: org.teleal.cling.transport.spi.InitializationException: Could...

boot2docker - An error occurred trying to connect when running docker version command

windows-7,docker,containers,boot2docker
When I use boot2docker to start the boot2docker-vm, then in gitbash I run the docker version command I get the following: $ docker version Client version: 1.6.2 Client API version: 1.18 Go version (client): go1.4.2 Git commit (client): 7c8fca2 OS/Arch (client): windows/amd64 FATA[0021] An error occurred trying to connect: Get...

Unable to access Docker containers folder on command line

docker,boot2docker
I've just created my first docker container and it runs successfully. My problem now is that I can't access the folder where they are stored by default /var/lib/docker/containers It keeps throwing the error can't cd to containers...

docker-machine to connect with external host

docker,boot2docker,docker-machine
I'm using docker-machine v0.2 and I have two host(hostA, hostB) with OS Ubuntu 14.04. Then I was follow the official doc to install and use docker-machine.Finally After initial steps I have installed on my hostA: docker and docker-machine. When I use example of driver virtualbox(docker-machine create --driver virtualbox dev) all...

How to run grunt-connect within docker container

docker,boot2docker,grunt-contrib-connect
I have Grunt running a node connect (grunt-contrib-connect) web server on localhost:8080 in a docker container. I run the container with this command: $ docker run --rm -it -p 8080:8080 js1972/yeoman:v3. Inside my container I run the grunt connect task with grunt develop. I'm on a Mac so using boot2docker....

boot2docker equivalent of docker exec

docker,boot2docker
First time dorking with Docker and Golang, and I'm unfamiliar with linux commands, so I could be mucking up in any aspect of this: I'm running boot2docker on a windows machine and I'm trying to get inside a running instance to debug why my golang isn't executing. Using docker exec...

How to connect to 'real' localhost from inside my VM boot2docker container?

amazon-web-services,amazon-ec2,docker,boot2docker,fig
Amazon AWS doesn't allow ElastiCache/Redis instances to be accessible outside of EC2 instances (outside as in, from my laptop). So for dev purposes, this means my docker containers need to reference the redis instance running on my local Mac. But how do I map the redis server running on 6379...

docker-machine without TLS verification

docker,boot2docker,docker-machine
I'm using docker-machine v0.3.0-RC-1 and I need create a host on virtualbox without TLS verification, but I don't know if it's posible to do it? Anybody know a ligth way to do it?

Why is bash so painfully slow in boot2docker for Windows?

windows,boot2docker
I have installed boot2docker on Windows 7 and I have noticed that it is incredibly slow. I have tried on several machines with the same result - it takes a while to load and the worst part is the lag between typing and the characters actually appearing on screen is...

PyCharm add remote Python interpreter inside the Docker

python,docker,pycharm,remote-debugging,boot2docker
So I have set up a docker on my laptop. I'm using Boot2Docker so I have one level of indirection to access the docker. In PyCharm, I can set a remote python interpreter via SSH but I'm not sure how to do it for dockers that can only be accessed...

dockerizing an application on Mac OS X

osx,docker,zeromq,boot2docker
I installed boot2docker as explained on the docker website. Here are some command runs to show that I have things installed correctly: $$:~ kv$ boot2docker start Waiting for VM and Docker daemon to start... ...................ooo Started. Writing /Users/kvantum/.boot2docker/certs/boot2docker-vm/ca.pem Writing /Users/kvantum/.boot2docker/certs/boot2docker-vm/cert.pem Writing /Users/kvantum/.boot2docker/certs/boot2docker-vm/key.pem Your environment variables are already set correctly. $$:~...

Docker EXPOSE vs command line -p option (boot2docker)

networking,docker,boot2docker
After spending way too long trying to access my node server running from a docker container within a boot2docker instance I realised the issue came down to a difference between expose and docker run -p. In my Dockerfile I had EXPOSE 3001, and I could not access this via my...

Docker commit doesn't make changes to containers union file system

jenkins,boot2docker,dockerhub
This probably has been asked at some point, but I can't find it anywhere. I can't seem to be able (or can't figure out how) to commit changes to a docker image without losing file changes in the container that i'm committing. Here's my use case. I use Boot2Docker on...

can't push or pull to a docker repo `Repository not found`

docker,boot2docker
I am new to docker. created a public repo under my account link to repo I am able to pull other public repos like redis and debian: docker ps ✱ CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 40416ad4c715 debian:latest "/bin/sh -c 'while t 6 minutes ago Up 6 minutes...

docker-compose: postgres data not persisting

postgresql,sqlalchemy,docker,boot2docker,docker-compose
I have a main service in my docker-compose file that uses postgres's image and, though I seem to be successfully connecting to the database, the data that I'm writing to it is not being kept beyond the lifetime of the container (what I did is based on this tutorial). Here's...

Docker port expose

docker,boot2docker
As a follow up to Linking Docker Containers I've linked both a mongo, redis container with my nodejs app container successfully. My node app is now running inside my container but for some reason I can't access it: CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 3f8790bb7cc5 mseay/myapp:latest "/bin/bash" 2...

Boot2Docker - Access webserver as localhost

docker,portforwarding,boot2docker
Created a apache webserver as Docker container but want to access it on windows os browser as localhost. I can access the webserver with boot2docker private ip address which is 192.168.59.103 but would like to access the webserver as localhost i.e 127.0.0.1. Following is my Docker Container setup Running Boot2docker...

My docker container was created with no name and no tag

docker,boot2docker
I'm creating a docker image for hakyll compilation. Here's the dockerfile: FROM haskell:7.10 RUN cabal update && cabal install hakyll This file is in some folder on my D: drive: D:\Haskell\docker\docker-hakyll. I'm using Boot2Docker on Windows to build it. docker images gives me REPOSITORY TAG IMAGE ID CREATED VIRTUAL SIZE...

Inserting a conditional RUN statement inside a dockerfile

shell,docker,boot2docker
I am trying to write a docker file which will run a RUN command to search for a word in a package.json file and act upon it: this is my simple dockerfile: FROM ubuntu:14.04 COPY package.json package.json RUN if grep -q "grunt" package.json; then echo succeed fi as you can...

Connection refused when trying to access SOLR instance running in boot2docker on windows

solr,docker,boot2docker
I pulled this SOLR docker image and then followed the instructions to run it. docker run -d -p 8983:8983 -t makuk66/docker-solr Typing in docker ps yielded 1197d246f0e3 makuk66/docker-solr:latest "/bin/bash -c '/opt/ 50 minutes ago Up 50 minutes 0.0.0.0:8983->8983/tcp suspicious_sinoussi So I know it's running. In order to connect to it...

Connection refused when try to connect http server in docker daemon container

docker,boot2docker
I am using boot2docker. I run one image at the daemon mode which starts grunt server at port 3000. This is the command I used to start it up. That image has already exposed port 3000 docker run -d -P --name dummy image_name grunt server docker ps 3af4ba19c539 image_name:latest "grunt...

Running a docker container inside another docker container?

node.js,unix,exec,docker,boot2docker
I'm trying to create a contained docker environment inside another contained docker environment and call it through NodeJS's exec function. I've read through the Docker docs and as far as I can see, this is achieved by passing the --privileged flag when starting a container. As I'm developing on a...