move old directory
This commit is contained in:
parent
5fc736cdda
commit
f6295efbd3
@ -5,8 +5,9 @@
|
|||||||
# Autor: Patrick Asmus
|
# Autor: Patrick Asmus
|
||||||
# Web: https://www.media-techport.de
|
# Web: https://www.media-techport.de
|
||||||
# Git-Reposit.: https://git.media-techport.de/scriptos/docker-installer
|
# Git-Reposit.: https://git.media-techport.de/scriptos/docker-installer
|
||||||
# Version: 3.1
|
# Version: 3.1.1
|
||||||
# Datum: 22.02.2024
|
# Datum: 24.02.2024
|
||||||
|
# Modifikation: move old directory
|
||||||
#####################################################
|
#####################################################
|
||||||
|
|
||||||
# Variablen
|
# Variablen
|
||||||
@ -26,6 +27,8 @@ sudo apt install -y docker-ce docker-ce-cli containerd.io
|
|||||||
sudo mkdir -p $DOCKER_ROOT_DIR
|
sudo mkdir -p $DOCKER_ROOT_DIR
|
||||||
sudo systemctl stop docker
|
sudo systemctl stop docker
|
||||||
echo "{\"data-root\": \"$DOCKER_ROOT_DIR\"}" | sudo tee /etc/docker/daemon.json
|
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 systemctl start docker
|
||||||
sudo usermod -aG docker $USER
|
sudo usermod -aG docker $USER
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user