File tree 1 file changed +4
-6
lines changed
1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -389,12 +389,10 @@ do_install() {
389
389
}
390
390
391
391
if [ " $lsb_dist " = " raspbian" ]; then
392
- # overlay is preferred to use on Raspbian
393
- if [ ! -f /etc/modules-load.d/docker.conf ]; then
394
- # Load kernel module 'overlay' at boot time
395
- ( set -x; $sh_c " modprobe overlay" )
396
- ( set -x; $sh_c " echo overlay > /etc/modules-load.d/docker.conf" )
397
- fi
392
+ # Create Raspbian specific systemd init file, use overlay by default
393
+ ( set -x; $sh_c " mkdir -p /etc/systemd/system" )
394
+ ( set -x; $sh_c " $curl https://raw.githubusercontent.com/docker/docker/master/contrib/init/systemd/docker.service > /etc/systemd/system/docker.service" )
395
+ ( set -x; $sh_c " sed -i 's/dockerd/dockerd --storage-driver overlay/' /etc/systemd/system/docker.service" )
398
396
else
399
397
# aufs is preferred over devicemapper; try to ensure the driver is available.
400
398
if ! grep -q aufs /proc/filesystems && ! $sh_c ' modprobe aufs' ; then
You can’t perform that action at this time.
0 commit comments