change to overlay2 (#546)

This commit is contained in:
Daniel Hansson 2018-05-27 19:54:20 +02:00 committed by GitHub
parent 33d97ff4f5
commit feecfcf130
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 32 deletions

View File

@ -79,22 +79,11 @@ check_open_port 443 "$SUBDOMAIN"
install_if_not curl
curl -fsSL get.docker.com | sh
# Load aufs
# apt-get install linux-image-extra-"$(uname -r)" -y # doesn't exist in Ubuntu 18.04
install_if_not aufs-tools # already included in the docker-ce package
AUFS=$(grep -r "aufs" /etc/modules)
if ! [ "$AUFS" = "aufs" ]
then
echo "aufs" >> /etc/modules
fi
# Set docker storage driver to AUFS
AUFS2=$(grep -r "aufs" /etc/default/docker)
if ! [ "$AUFS2" = 'DOCKER_OPTS="--storage-driver=aufs"' ]
then
echo 'DOCKER_OPTS="--storage-driver=aufs"' >> /etc/default/docker
service docker restart
fi
# Set devicemapper
check_command cp -v /lib/systemd/system/docker.service /etc/systemd/system/
sed -i "s|ExecStart=/usr/bin/dockerd -H fd://|ExecStart=/usr/bin/dockerd --storage-driver=devicemapper -H fd://|g" /etc/systemd/system/docker.service
systemctl daemon-reload
systemctl restart docker
# Check of docker runs and kill it
DOCKERPS=$(docker ps -a -q)

View File

@ -78,22 +78,11 @@ check_open_port 443 "$SUBDOMAIN"
install_if_not curl
curl -fsSL get.docker.com | sh
# Load aufs
# apt-get install linux-image-extra-"$(uname -r)" -y # doesn't exist in Ubuntu 18.04
install_if_not aufs-tools # already included in the docker-ce package
AUFS=$(grep -r "aufs" /etc/modules)
if ! [ "$AUFS" = "aufs" ]
then
echo "aufs" >> /etc/modules
fi
# Set docker storage driver to AUFS
AUFS2=$(grep -r "aufs" /etc/default/docker)
if ! [ "$AUFS2" = 'DOCKER_OPTS="--storage-driver=aufs"' ]
then
echo 'DOCKER_OPTS="--storage-driver=aufs"' >> /etc/default/docker
service docker restart
fi
# Set devicemapper
check_command cp -v /lib/systemd/system/docker.service /etc/systemd/system/
sed -i "s|ExecStart=/usr/bin/dockerd -H fd://|ExecStart=/usr/bin/dockerd --storage-driver=devicemapper -H fd://|g" /etc/systemd/system/docker.service
systemctl daemon-reload
systemctl restart docker
# Check of docker runs and kill it
DOCKERPS=$(docker ps -a -q)