Using Overlay file system with Docker on systemd Ubuntu (14.10+)
24Dec15
Back in March I wrote about Using Overlay file system with Docker on Ubuntu – those instructions applied to Ubuntu before the switch to systemd e.g. 14.04 and earlier.
The move to systemd means that changes to /etc/default/docker don’t have any effect any more.
To get systemd to dance along to our tune needs a file like this:
/etc/systemd/system/docker.service.d/overlay.conf
[Service] ExecStart= ExecStart=/usr/bin/docker daemon -H fd:// --storage-driver=overlay
To make this work use the following script (or get it from gist to avoid silly copy/past replacement of < with <):
sudo mkdir /etc/systemd/system/docker.service.d sudo bash -c 'cat <<EOF > /etc/systemd/system/docker.service.d/overlay.conf [Service] ExecStart= ExecStart=/usr/bin/docker daemon -H fd:// --storage-driver=overlay EOF' sudo systemctl daemon-reload sudo systemctl restart docker
Now when you run ‘sudo docker info’ you should see something like:
... Storage Driver: overlay Backing Filesystem: extfs ...
At least you didn’t need to upgrade the kernel this time – small mercies.
NB this is somewhat (inaccurately right now) documented in Control and configure Docker with systemd – I can feel a PR coming on.
Filed under: Docker, howto | 1 Comment
Tags: Docker, file system, overlay, systemd, Ubuntu
Subscribe
Search
Raspberry Pi Downloads
Top Posts
- Getting more from a British Gas UP2 Timer
- Howto - Factory Reset iLO 4 on HP Microserver Gen8
- Podcasts
- About
- Howto: secure your DNS with a Raspberry Pi, Unbound and Cloudflare 1.1.1.1
- Making an image file from an SD card on Windows
- Comparing Google and Amazon Pro Architect Certifications
- Dart
- OpenWRT on TP-Link TL-WR2543ND
- Wireless doorbell extension
-
Recent Posts
Recent Comments
Chris Swan on USB C Charger Reviews Jeremy on USB C Charger Reviews Advent of Code 2022:… on Learning (better) Dart with Ad… Halfdan Knudsen on Howto: secure your DNS with a… Halfdan Knudsen on Howto: secure your DNS with a… Pinboard.in bookmarks
- Ukraine Hit with New Golang-based 'SwiftSlicer' Wiper Malware in Latest Cyber Attack
- Untying Brexit's toxic knots
- The stench coming from this government? It’s the corrupt mixture of private wealth and public squalor
- Why is British politics a raging bin-fire?
- Sarah Clarke dissects the political zeitgeist
- harbaum/galagino: A galaga arcade emulator for the ESP32
- Rust's Ugly Syntax
- Git rebase, squash...oh my!
- A Watermark for Large Language Models
- Mjolnir
Twitter Updates
- RT @HarryStebbings: I have invested in 170 companies. The ones that win, have the fastest feedback loops. They try lots, they fail fast,… 11 hours ago
- @AdrianAlvarezGa Ok. Then that’s probably through X then, which is what I expected from you showing console text on… twitter.com/i/web/status/1… 11 hours ago
- RT @DanNeidle: I'm going to leave the politics to others. The tax part of the Zahawi story, and therefore my role, feels over. But I wanted… 12 hours ago
- RT @DanNeidle: That hides the unpleasant truth that the basic SLAPP strategy remains sound. In reality, when Goliath picks on David, Goliat… 12 hours ago
- RT @NHSMillion: We’re trying to get as many followers as Rishi Sunak so we can show the government just how many people are prepared to fig… 12 hours ago
Blogroll
- 451 CAOS Theory
- Adam Bosworth’s Weblog
- Andrew McAfee
- Behavioural Investing
- CapitalSCF
- Carpe Visum
- causticTech
- Charles Stross
- confused of calcutta
- Cory Doctorow
- Craig Murray
- Dan Creswell’s Weblog
- Dark Reading
- Dilbert Blog
- DJW
- Doc Searls
- Don Box’s Spoutlet
- Dopplr
- Eben Moglen
- Enhyper
- Financial Cryptography
- Fred Destin
- Freedom to Tinker
- Graham Glass, etc.
- Greg Matter
- Hugh Grant
- Internet Alchemy
- Invisible Things
- James Strachan’s Weblog
- John Merrells
- Jon Udel
- Justice League
- Kim Cameron
- Lambda the Ultimate – Programming Languages Weblog
- Light Blue Touchpaper
- Loosely Coupled weblog
- Luke Hutteman’s Weblog
- Marc Andreeson
- Nick Selby
- ongoing
- Otaku, Cedric’s weblog
- Park Paradigm
- Paul Graham
- Phil Becker
- Pi4Tech
- PJKtech
- Radovan Janecek: Nothing Impersonal
- rants
- Richard Monson-Haefel
- SAAS
- Schneier on Security
- Service Oriented Enterprise
- Simon Phipps’s Blog
- techno.blog(“Dion”)
- The BileBlog
- THE GRID BLOG
- Tim Oren’s Due Diligence
- timbl’s blog
- virtualization.info
- WebMink
- WebServices.org
- XKCD
Categories
One Response to “Using Overlay file system with Docker on systemd Ubuntu (14.10+)”