Tag: boot2docker

How to access Docker container's web server from host

I’m running under boot2docker 1.3.1. I have a Docker container running a web server via uwsgi –http :8080. If I attach to the container I can browse the web site using lynx http://127.0.0.1:8080 so I know the server is working. I ran my container with: $ docker run -itP –expose 8080 uwsgi_app:0.2 It has the […]

Inserting a conditional RUN statement inside a dockerfile

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 see i just want a […]

Accessing host machine as localhost from a Docker container that's also inside a boot2docker vm

Suppose I have a server running on port 8000 on OSX. How can my Docker container access it via localhost:8000? I can’t change the hostname too as the app in the container is not in my control. I’ve read this previous discussion on using –net=”host” for a container to access the host machine’s network. However, […]

Difference between Docker and OpenVZ

I am newbie to the world of virtualization. Can some one explain to me the differences between OpenVZ and Docker? What could be good for the future? Pros and cons?

docker-machine boot2docker root password

Haven’t found an answer anywhere… I created a VM (boot2docker) using docker-machine. I need to edit some files using root. What is the root password in boot2docker?

Change boot2docker memory assignment

I’ve been playing around with docker on a mac so I need to install boot2docker to make it work. I have a pretty powerful machine and a very resource hungry app so I want to up the available memory from the default which is 1GB to something like 8GB. This is what I’ve tried Booting […]

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

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 […]

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 […]

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 […]

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