[baseimage]: let docker in base image use overlay fs instead of aufs

This commit is contained in:
Guohan Lu 2017-09-05 05:57:12 +00:00
parent dabbe63f99
commit b03e974bb3
2 changed files with 2 additions and 1 deletions

View File

@ -42,6 +42,7 @@ clean_sys() {
trap_push clean_sys trap_push clean_sys
sudo LANG=C chroot $FILESYSTEM_ROOT mount sysfs /sys -t sysfs sudo LANG=C chroot $FILESYSTEM_ROOT mount sysfs /sys -t sysfs
sudo bash -c "echo \"DOCKER_OPTS=\"--storage-driver=overlay\"\" >> $FILESYSTEM_ROOT/etc/default/docker"
sudo chroot $FILESYSTEM_ROOT service docker start sudo chroot $FILESYSTEM_ROOT service docker start
# Apply apt configuration files # Apply apt configuration files

View File

@ -1,3 +1,3 @@
[Service] [Service]
ExecStart= ExecStart=
ExecStart=/usr/bin/docker daemon -H fd:// --storage-driver=aufs --bip=240.127.1.1/24 --iptables=false ExecStart=/usr/bin/docker daemon -H fd:// --storage-driver=overlay --bip=240.127.1.1/24 --iptables=false