November 21, 2016

Docker and ZFS in practice

Today i was stumbling upon ZFS in Docker Docs. The ZFS on Linux (ZoL) port is healthy and maturing. However, at this point in time it is not recommended to use the zfs Docker storage driver for production use unless you have substantial experience with ZFS on Linux. I do have, so let’s try things out. I’m not installting any Ubuntu ZFS thingy, just grabbed one of my lab Proxmox installations with ZFS builtin. In this test, there was no running Docker daemon before the next steps. If you already are running Docker, you should stop the service, rename (or delete) /var/lib/docker and continue. Read more

May 25, 2015

Deploy a private Docker registry including mirror and web frontend

UPDATE 2016-02-29 Adjusted to registry v2 added web frontend ##Server Start the registry: docker run -d -p 5000:5000 --restart=always --name docker-registry -v /var/lib/docker-registry:/var/lib/registry registry:2 Start the mirror: docker run -d -p 5555:5000 --restart=always --name docker-mirror -v /var/lib/docker-mirror:/var/lib/registry -e STORAGE_PATH=/var/lib/registry -e STANDALONE=false -e MIRROR_SOURCE=https:/registry-1.docker.io -e MIRROR_SOURCE_INDEX=https://index.docker.io registry Start the web frontend: docker run -d --restart=always --name docker-registry-frontend -e ENV_DOCKER_REGISTRY_HOST=docker-registry.hq.packetwerk.com -e ENV_DOCKER_REGISTRY_PORT=5000 -e ENV_DOCKER_REGISTRY_USE_SSL=1 -p 80:80 konradkleine/docker-registry-frontend:v2 ##Client Edit /etc/default/docker and add DOCKER_OPTS like this: DOCKER_OPTS="–dns=ns1 –dns=ns2 –insecure-registry=docker-registry:5000 –registry-mirror=http://docker-registry:5555" Read more