Issues running cron in Docker on different hosts

Im trying to get a docker container running to mange my cronjobs im running a very simple cron as a test in a docker container using centOS 6.5 base * * * * * /bin/echo “it works!” >> test.log it works fine if the container is running on CoreOS host, however if I run the […]

prior storage driver “aufs” failed: driver not supported Error starting daemon: error initializing graphdriver: driver not supported

When a try to run docker locally in ubuntu 14.04 when i run this line in the console: sudo docker -d The console show me this error: Warning: ‘-d’ is deprecated, it will be removed soon. See usage. WARN[0000] please use ‘docker daemon’ instead. ERRO[0000] [graphdriver] prior storage driver “aufs” failed: driver not supported FATA[0000] […]

Run Grunt / Gulp inside Docker container or outside?

I’m trying to identify a good practice for the build process of a nodejs app using grunt/gulp to be deployed inside a docker container. I’m pretty happy with the following sequence: build using grunt (or gulp) outside container add ./dist folder to container run npm install (with –production flag) inside container But in every example […]

Docker 1.12 swarm mode and container volumes

I have several container that require state – I will only ever set the scale to 1, but I would like it so that no matter which host they start on the volume would be shared. I’m guessing I need to use a network mount to achieve this (which is fine), but how on earth […]

Docker CentOS image does not auto start httpd

I’m trying to run a simple Docker image with Apache and a PHP program. It works fine if I run docker run -t -i -p 80:80 my/httpd /bin/bash then manually start Apache service httpd start however I cant get httpd to start automatically when running docker run -d -p 80:80 my/httpd Apache will startup then […]

Docker MAC Address Generation

I had a question about applications running within Docker containers and UUID generation. Here’s our scenario: Currently our applications are using an event driven framework. For the events we generate the UUID’s based on mac address, pid, time-stamp and counter. For running containers on a distributed system like CoreOS (while a very very very low […]

Use Eureka despite having random external port of docker containers

I am writing an application that is composed of a few spring boot based microservices with a zuul based reverse proxy in the front- It works when I start the services on my machine, but for server rollout I’d like to use docker for the services, but this seems not to be possible right now. […]

docker-compose yml running a script after up

I want to run a script, right after running `docker-compose up -d` Here is my snippet of docker-compose.yml . The other settings are mysql server, redis…etc….but they are not causing any problems web: image: nginx container_name: web-project volumes: – ./code:/srv working_dir: /srv/myweb extra_hosts: – “myweb.local:” ports: – 8081:80 # tty: true command: sh /srv/scripts/ So […]

Upgrade docker on CentOS 7

I’m running centos 7 and have installed docker on host using epel packages: yum install epel-release yum install docker But the docker version is-Docker version 0.11.1-dev, build 02d20af/0.11.1 The latest stable branch of docker is 1.2 I’m running couple of containers on this host, so how can i update docker safely on this host? yum […]

Docker hello-world: authentication error

I’m just getting started with docker. I’m following the instructions specified here I installed docker (1.10.2) on windows 10 & ran docker run hello-world . But, I’m getting an authentication error while the tutorial doesn’t mentioned anything about it. Here’s the message I received. $ docker run hello-world Unable to find image ‘hello-world:latest’ locally […]

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