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

How can I expose more than 1 port with Docker?

So I have 3 ports that should be exposed to the machine’s interface. Is it possible to do this with a Docker container?

Security of Docker as it runs as root user

A Docker blog post indicates: Docker containers are, by default, quite secure; especially if you take care of running your processes inside the containers as non-privileged users (i.e. non root).” So, what is the security issue if I’m running as a root under the docker? I mean, it is quite secure if I take care […]

My docker container has no internet

I had it working allright but now it stopped. I tried the following commands with no avail: docker run -dns base ping docker run base ping sysctl -w net.ipv4.ip_forward=1 – both on the host and on the container All I get is unknown host Docker version 0.7.0 Any ideas? P.S. ufw […]

How to do local development with Kubernetes?

Kubernetes seems to be all about deploying containers to a cloud of clusters. What it doesn’t seem to touch is development and staging environments (or such). During development you want to be as close as possible to production environment with some important changes: Deployed locally (or at least somewhere where you and only you can […]

How to run Nginx within a Docker container without halting?

I have Nginx installed on a Docker container, and am trying to run it like this: docker run -i -t -p 80:80 mydockerimage /usr/sbin/nginx The problem is that the way Nginx works, is that the initial process immediately spawns a master Nginx process and some workers, and then quits. Since Docker is only watching the […]

How can I make /etc/hosts writable by root in a Docker Container?

I’m new to using docker and am configuring a container. I am unable to edit /etc/hosts (but need to for some software I’m developing). Auto-edit (via sudo or root) of the file says its on a read only file system. Manual (vim) edit of the file says its read-only and I’m unable to save changes […]

docker container ssl certificates

Is there any elegant way to add ssl certificates to images that have come from docker pull?. I’m looking for a simple and reproducible way of adding a file into /etc/ssl/certs and run update-ca-certificates. (This should cover ubuntu and debian images). I’m using docker on CoreOS, and the coreos machine trusts the needed ssl certificates, […]

Most appropriate container for a data only container?

Sorry if this is a silly question but what is the most appropriate (smallest, simplest) container to use for a data only Docker container? In the documentation they use the training/postgres container. However, I believe another container will actually run the database (e.g. postgres). I assume a data container would be very minimal since […]

What is the difference between CMD and ENTRYPOINT in a Dockerfile?

In Dockerfiles there are two commands that look similar to me: CMD and ENTRYPOINT. But I guess that there is a (subtle?) difference between them – otherwise it would not make any sense to have two commands for the very same thing. The documentation states for CMD The main purpose of a CMD is to […]

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