Tag: osx

What is the best practices of using Docker for front end development on OS X and passthrough ENV from host to container

I am looking for best practices about front-end developing on OSX with docker and I have found number of projects on github. Here they are: docker-osx-dev boot2docker-xhyve coreos-xhyve docker-unison hodor The fact is I need two-way syncing files from host system to virtual container and vice versa via mounted (synced) folder and IO performance should […]

How to export the docker variables?

I’m new to docker.My Operating system is Mac OS. I follow the step from docker website, Download the boot2docker and install it. run the boot2docker $ boot2docker init $ boot2docker start $ docker run hello-world the result is that : bash-3.2$ docker run hello-world An error occurred trying to connect: Post x509: certificate is […]

How to access webserver running on localhost from a docker container on a network?

I have the following system configuration: Docker container running on user defined network docker-machine (with VirtualBox on OS:X forwarding port 9000 to 9000) Local webserver running on http://localhost:9000 I do not know how to make a basic http request against this webserver, from within my docker container. To test this I am using: docker exec […]

Port mapping in Docker on Mac OSX installed with Docker Toolbox

I installed Docker on a Mac using the Docker Toolbox. I opened Docker Quickstart Terminal and ran docker run hello-world That works fine. Then I tried: docker run -d -p 8080:80 nginx I can see that the container is added. docker log with the container id returns nothing but I think that’s normal? When I […]

Go imageproxy inaccessible from docker container

I am trying to deploy the excellent Go image proxy server https://github.com/willnorris/imageproxy on Mac OSX as docker container via Docker Cloud. I cannot make the container accessible to my browser docker run -i -t -p 8080:8080 willnorris/imageproxy:latest /go/bin/imageproxy -addr should expose the server at docker-machine ip [vmname], in this case I verified my […]

botocore.exceptions.EndpointConnectionError from inside Mac Docker container

I’ve recently started getting an EndpointConnectionError (after a long timeout) when attempting to contact DynamoDB from inside a Docker container running on Mac. The same code and setup has previously worked fine. Here’s some sample code: >>> from boto3 import resource >>> r = resource(‘dynamodb’) >>> table = r.Table(‘Users’) >>> table.put_item(Item={‘id’:’987987′}) My ~/.aws/config: [default] output […]

Cannot browse dockerized web app from other computers on network

I would like any computer on the same network as my Mac to be able to access the dockerized Rails web app running on my Mac. On my Mac (10.9.5) my Rails 4.2.4 web app is running fine in Docker when I access it via the docker ip and the port I assigned, Docker […]

File mounted as docker volume becomes corrupt when saved outside docker

In my host, I have this dir: /Users/gezimhome/projects/ziprecipes.net/zip-recipes/src which I mount to my docker container as: /usr/share/nginx/html/wordpress/wp-content/plugins/zip-recipes If I modify the following file (e.g. add a new line) outside of docker: /Users/gezimhome/projects/ziprecipes.net/zip-recipes/src/plugins/VisitorRating/scripts/main.js, I get a syntax error in the browser: Safari: Chrome: If I go into the docker container and so much as open the […]

How to install old version (1.8.3) of docker on OS-X?

There is a nasty bug in Docker 1.9.x that is causing java processes to hang and frankly hang up the entire container instance, spinning 100% CPU. I currently have docker 1.9.1 installed because that is all that the docker install tool will install. There is no opportunity during the install process to select any other […]

cannot ping www.google in a docker container when connected to one wifi

For some strange reason, I am not able to ping www.google.com when connected to one wifi. If I disconnect from that wifi and connect to another wifi, I am able to ping www.google.com. This has happened on 2 different wifi. While on those wifi networks, I am able to browse the web and ssh into […]

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