Skip to content

Instantly share code, notes, and snippets.

@rosskevin
Last active March 31, 2017 20:30
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save rosskevin/6e693047e79f9c9d0702 to your computer and use it in GitHub Desktop.
Enable the overlay fs for Docker on Ubuntu 15.04
systemctl stop docker
# kill all old images etc
rm -rf /var/lib/docker
# change the startup options for docker service
mkdir /etc/systemd/system/docker.service.d
cd /etc/systemd/system/docker.service.d
vi storage.conf
# add the startup option to storage.conf which rewrites the ExecStart with options
# NOTE: should be same as /lib/systemd/system/docker.service without aside from the storage option
[Service]
ExecStart=
ExecStart=/usr/bin/docker daemon -H fd:// --storage-driver=overlay
# reload config changes
systemctl daemon-reload
systemctl stop docker
# verify new storage driver
docker info
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment