How to access private Docker Hub repository from Kubernetes on Vagrant

I am failing to pull from my private Docker Hub repository into my local Kubernetes setup running on Vagrant: Container “hellonode” in pod “hellonode-n1hox” is waiting to start: image can’t be pulled Failed to pull image “username/hellonode”: Error: image username/hellonode:latest not found I have set up Kubernetes locally via Vagrant as described here and created […]

Gitlab runner + autoscaling + scaled runner options

I’m using gitlab runner with docker+machine executor to fire up autoscaled runners on AWS. I would like to use docker-in-docker setup inside the runners to build containers, but I can’t find out how to define the needed [runners.docker] properties for the spawned runners to enable docker usage. Is it possible to somehow pass some config […]

Eureka clients in docker container

I have an eureka server and two rest services (eureka clients) running in docker containers. If the first service tries to access the second one, I get an UnknownHostException. The reason is that the services register on eureka server with the container host name which the dns server can not resolve. I thought the solution […]

How to allocate 50% CPU resource to docker container?

I have a 4-core CPU, I want to allocate 50% CPU resource to a docker container. After reading the docker-run manual and config.go source code. I still don’t know how to use the -c, –cpu-shares=0 option. docker run -c 0.5 -i -t ubuntu /bin/bash Or docker run -c 2 -i -t ubuntu /bin/bash

Eval command not found when completing the Docker for Windows tutorial

Eval command does not exist in Windows. The Docker for Windows tutorial step 6 says to run this command: C:\Users\mary> eval “$(docker-machine env my-default)” Is this a mistake in the tutorial or did I not install something correctly? I can run this command just fine from Git Bash but I’m curious why the Docker tutorial […]

Setting up a development environment with docker

I’m facing some issues in setting up docker for a development environment for my team. So far: 1) I used a base image to start a container docker run -t -i ubuntu:latest “/bin/bash” 2) I installed all the compile and build tools in it 3) I committed that image and pushed that to our local […]

Restarting Play application Docker container results in 'This application is already running' – RUNNING_PID is not deleted

Edit: There is a related issue being discussed on Github but in another mode of deployment (Typesafe Activator UI and not Docker). I was trying to simulate a system reboot in order to verify the Docker restart policy which declares to be able to re-run containers in the correct order. I have a Play framework […]

GitLab-CI Multi Runner php composer cache

I’m using gitlab-ci-multi-runner with docker containers. Everything is going fine, but docker containers don’t keep the composer cache so in every run composer downloads dependencies again and again, which takes a lot of time. Is there any way to configure gitlab-ci-runner docker container to keep the composer cache or mount a volume on each run […]

libcontainer vs Docker vs OCF vs runc?

I’m trying to understand the Docker world a little better, and can’t quite seem to wrap my brain around the differences between these. I believe that OCF is an emerging container standard being endorsed by OpenContainers, and I believe that Docker is set to be the first reference implementation of that standard. But even then, […]

Running a docker-compose “Getting Started” example causes “Invalid volume specification” on Windows

I am absolutely new to Docker. I followed steps described in Docker Compose’s “Getting Started” tutorial: Install Docker Toolbox Start Docker Quickstart Terminal Add project files Run docker-compose up command And I got following error: ERROR: for web Cannot create container for service web: Invalid bind mount spec “D:\\Projects\\composetest:/code:rw”: Invalid volume specification: ‘D:\Projects\composetest:/code:rw’ [31mERROR[0m: Encountered […]

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