Simplest Docker service

The Simplest Docker service My first thought when wanting to run a docker container as a system service, was to use docker service. Like this docker service create --name nginx -p 80:80 \ --mount type=bind,source=/var/www,destination=/usr/share/nginx/html \ nginx But this is sometimes an overkill. In case on nginx a much simpler solution would be docker run --detach --network host \ --restart=always \ -v /var/www:/usr/share/nginx/html:ro \ nginx It’s the way to go, when you just what to have one instance on one specific host. [Read More]
docker 

Prevent docker from filling up your disk

Deploying docker container as part of your continuous integration can cause your disk to fill up pretty quick. Docker does reuse the layers that did not change between deployments. But still, that last layer with you .war or .js bundle can take a few hundred megabytes. Taking into account, that you should be deploying a new version of every update of the master branch, this can take up a gigabyte every day. [Read More]
docker  cron