Fedora Atomic Host comes bundled with a version of Docker based on this project atomic repo that moves no faster than the upstream Kubernetes project can abide (currently docker-1.13.1). This means that Fedora Atomic pretty much always ships with an older version of docker than what’s available from Docker Inc.
However, through the magic of rpm-ostree package layering, you can replace that older, baked-in docker with the very latest docker-ce. Here’s how:
First, grab the repo file for docker-ce.
# cd /etc/yum.repos.d/ # curl -O https://download.docker.com/linux/fedora/docker-ce.repo
Then create a config file to tell docker-ce to use overlay2 storage.
# vi /etc/docker/daemon.json { "storage-driver": "overlay2" }
Then, use rpm-ostree override
to remove docker and kubernetes from the image, and use rpm-ostree install
to layer on docker-ce from the configured repo.
# rpm-ostree override remove docker docker-common kubernetes kubernetes-node cockpit-docker # rpm-ostree install docker-ce -r
After the reboot, you’ll have the latest docker-ce installed. Knock yourself out with any number of bleeding-edge features!
# docker info Containers: 0 Running: 0 Paused: 0 Stopped: 0 Images: 0 Server Version: 17.09.0-ce Storage Driver: overlay2 ...
Leave a comment