Docker Hub Automated Build – Tagging

When specifying an Automated Build on Docker Hub, I can set some settings (Type (‘Branch’ or ‘Tag’), Name, Dockerfile Location and Docker Tag Name). But unfortunately I didn’t find any documentation for those. I assume, that when I choose Type ‘Branch’ and enter a Name, this is the branch from my git repository on GitHub/BitBucket […]

Alternatives to ssh X11-forwarding for Docker containers

I am running a Docker container mainly as an isolated development environment for the R language. (The usage of R here is orthogonal to the rest of the post, i.e. you can just assume any generic program that can run in a repl-session.) A lot of times this will involve doing stuff like plotting, making […]

Docker, mount volumes as readonly

I am working with Docker,and I want to mount a dyanmic folder that changes a lot (so I do not have to make dockers for each ones execution, which would be too costly), but I want that folder to be readonly. Changing the folder owners to someone else works however chown requires root access, which […]

Am I trying to connect to a TLS-enabled daemon without TLS?

I’m trying to learn about Docker, but I keep getting cryptic (to me) error messages. Possibly the simplest example of this is trying to print the version of Docker I installed: $ sudo docker version Client version: 1.4.1 Client API version: 1.16 Go version (client): go1.3.3 Git commit (client): 5bc2ff8 OS/Arch (client): darwin/amd64 FATA[0000] Get […]

Can't push image to Amazon ECR – fails with “no basic auth credentials”

I’m trying to push a docker image to an Amazon ECR registry. I’m using docker client Docker version 1.9.1, build a34a1d5. I use “aws ecr get-login –region us-east-1” to get the docker login creds. I then successfully login with those creds as follows: docker login -u AWS -p XXXX -e none https://####.dkr.ecr.us-east-1.amazonaws.com WARNING: login credentials […]

DOCKER_OPTS in /etc/default/docker ignored

Environment: OS: debian 8.0.0-amd64, ubuntu-15.04, 16.04 Docker: 1.x.x Procedure: I changed /etc/default/docker to add a private docker registry, then I restarted docker service and finally tried to pull some image. $ cat /etc/default/docker DOCKER_OPTS=”–insecure-registry mydocker-registry.net:5000″ $ service docker restart $ docker pull mydocker-registry.net:5000/testdb FATA[0000] Error: v1 ping attempt failed with error: Get https://mydocker- registry.net:5000/v1/_ping: dial […]

How to upgrade docker container after its image changed

Let’s say I have pulled the official mysql:5.6.21 image. I have deployed this image by creating several docker containers. These containers have been running for some time until MySQL 5.6.22 is released. The official image of mysql:5.6 gets updated with the new release, but my containers still run 5.6.21. How do I propagate the changes […]

How do you list containers in Docker.io?

There’s a command to list images, docker images, but there doesn’t seem to be a corresponding docker containers. Other than becoming root and looking into /var/lib/docker there doesn’t seem a way to do that. Am I missing something? Is that something one isn’t supposed to do?

How to cache the RUN npm install instruction when docker build a Dockerfile

I am currently developing a Node backend for my application. When dockerizing it (docker build .) the longest phase is the RUN npm install. The RUN npm install instruction runes on every small server code change, impacting the productivity by making the developer wait for the build to finish each time. I found that running […]

Docker commands fails (in Windows)

I am trying to use Docker on a windows machine and is hit with every possible issue it seems. My latest one is this: My machine is running but I can’t seem to interact with it using the docker commands. If I run a very standard command like: docker ps I get an error message […]

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