Skip to content

Instantly share code, notes, and snippets.

@rdccosmo
Created December 15, 2015 10:17
Show Gist options
  • Save rdccosmo/5cdfb1c5883b6b9b3d6a to your computer and use it in GitHub Desktop.
Save rdccosmo/5cdfb1c5883b6b9b3d6a to your computer and use it in GitHub Desktop.
Docker service configuration to use overlay filesystem
#/lib/systemd/system/docker.service
[Unit]
0 Description=Docker Application Container Engine
1 Documentation=https://docs.docker.com
2 After=network.target docker.socket
3 Requires=docker.socket
4
5 [Service]
6 Type=notify
7 ExecStart=/usr/bin/docker daemon -H fd:// -s overlay
8 MountFlags=slave
9 LimitNOFILE=1048576
10 LimitNPROC=1048576
11 LimitCORE=infinity
12
13 [Install]
14 WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment