mirror of
https://github.com/kevinveenbirkenbach/linux-image-manager.git
synced 2024-11-14 11:31:04 +01:00
Optimized docker setup
This commit is contained in:
parent
956b027401
commit
d76f0114ec
@ -79,6 +79,10 @@ if pacman -Qi "docker" > /dev/null ; then
|
|||||||
info "Setting up docker..." &&
|
info "Setting up docker..." &&
|
||||||
info "Add current user \"$USER\" to user group docker..." &&
|
info "Add current user \"$USER\" to user group docker..." &&
|
||||||
sudo usermod -a -G docker "$USER" || error "Failed to add user."
|
sudo usermod -a -G docker "$USER" || error "Failed to add user."
|
||||||
|
info "Restarting docker service..." &&
|
||||||
|
sudo systemctl restart docker &&
|
||||||
|
info "Disable and stop docker service..." &&
|
||||||
|
sudo systemctl disable --now docker || error "\"systemctl\" produced an error."
|
||||||
info "For performance reasons docker is not enabled. Start docker by executing \"sudo systemctl restart docker\" when you need it."
|
info "For performance reasons docker is not enabled. Start docker by executing \"sudo systemctl restart docker\" when you need it."
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user