move old directory

This commit is contained in:
scriptos 2024-02-24 18:13:08 +01:00
parent 5fc736cdda
commit f6295efbd3

View File

@ -5,8 +5,9 @@
# Autor: Patrick Asmus
# Web: https://www.media-techport.de
# Git-Reposit.: https://git.media-techport.de/scriptos/docker-installer
# Version: 3.1
# Datum: 22.02.2024
# Version: 3.1.1
# Datum: 24.02.2024
# Modifikation: move old directory
#####################################################
# Variablen
@ -26,6 +27,8 @@ sudo apt install -y docker-ce docker-ce-cli containerd.io
sudo mkdir -p $DOCKER_ROOT_DIR
sudo systemctl stop docker
echo "{\"data-root\": \"$DOCKER_ROOT_DIR\"}" | sudo tee /etc/docker/daemon.json
cp /var/lib/docker/* $DOCKER_ROOT_DIR
rm -R /var/lib/docker
sudo systemctl start docker
sudo usermod -aG docker $USER