Tag: osx

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

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 already have installed. Those modifications […]

Couldn't connect to Docker daemon on Mac OS X

I would like to run multi-container application using docker-compose on Mac OS X El Capitan (v10.11.2). However, the command $ docker-compose up command complains that it can’t connect to the Docker daemon. ERROR: Couldn’t connect to Docker daemon – you might need to run docker-machine start default. Only after executing $ eval “$(docker-machine env default)” […]

How to fix “error in run: Failed to get machine ”boot2docker-vm“: machine does not exist”?

Running boot2docker with the start|info|stop|delete arguments result in an error message: snowch$ boot2docker start error in run: Failed to get machine “boot2docker-vm”: machine does not exist snowch$ boot2docker info error in run: Failed to get machine “boot2docker-vm”: machine does not exist snowch$ boot2docker stop error in run: Failed to get machine “boot2docker-vm”: machine does not […]

Connect to Docker MySQL container from localhost?

I have a docker mysql image running, following is what the docker-compose.yml file looks like: db: image: mysql environment: MYSQL_ROOT_PASSWORD: “” MYSQL_ALLOW_EMPTY_PASSWORD: yes ports: – “3306:3306” This works fine. My question is: How can I connect to the MySQL instance running on that container from the command line mysql client on my the host (my […]

How to fix Docker's “Error pulling image…too many redirects” failures while pulling images from registry?

I am running Docker via CoreOS and Vagrant on OS X 10.10. When I run docker pull ubuntu in CoreOS, I got following errors: $ docker pull ubuntu Pulling repository ubuntu cc0067db4f11: Error pulling image (precise) from ubuntu, endpoint: https://cdn-registry-1.docker.io/v1/, Get https://cdn-registry-1.docker.io/v1/images/cc0067db4f11198ef6fd0435f96a973e559b1cebfceb2bc8e4fe527b32045c2f/ancestry: dial tcp: lookup cdn-registry-1.dcc0067db4f11: Error pulling image (precise) from ubuntu, Get https://cdn-registry-1.docker.io/v1/images/cc0067db4f11198ef6fd0435f96a973e559b1cebfceb2bc8e4fe527b32045c2f/ancestry: dial […]

Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.