Improve systemd config for Raspbian
Signed-off-by: Dieter Reuter <dieter.reuter@me.com>
(cherry picked from commit 3c7ae431e0
)
Signed-off-by: Tibor Vass <tibor@docker.com>
This commit is contained in:
parent
460d8d80ca
commit
64f62a6703
1 changed files with 3 additions and 4 deletions
|
@ -389,10 +389,9 @@ do_install() {
|
|||
}
|
||||
|
||||
if [ "$lsb_dist" = "raspbian" ]; then
|
||||
# Create Raspbian specific systemd unit file, use overlay by default
|
||||
( set -x; $sh_c "mkdir -p /etc/systemd/system" )
|
||||
( set -x; $sh_c "$curl https://raw.githubusercontent.com/docker/docker/master/contrib/init/systemd/docker.service > /etc/systemd/system/docker.service" )
|
||||
( set -x; $sh_c "sed -i 's/dockerd/dockerd --storage-driver overlay/' /etc/systemd/system/docker.service" )
|
||||
# Create Raspbian specific systemd drop-in file, use overlay by default
|
||||
( set -x; $sh_c "mkdir -p /etc/systemd/system/docker.service.d" )
|
||||
( set -x; $sh_c "echo '[Service]\nExecStart=\nExecStart=/usr/bin/dockerd --storage-driver overlay -H fd://' > /etc/systemd/system/docker.service.d/overlay.conf" )
|
||||
else
|
||||
# aufs is preferred over devicemapper; try to ensure the driver is available.
|
||||
if ! grep -q aufs /proc/filesystems && ! $sh_c 'modprobe aufs'; then
|
||||
|
|
Loading…
Reference in a new issue