move old directory
This commit is contained in:
parent
5fc736cdda
commit
f6295efbd3
@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user