docker: enable on-demand rather than aggressively
This commit is contained in:
parent
07ba428f50
commit
4b73942d6c
|
@ -5,6 +5,7 @@ case "$OSTYPE" in
|
||||||
;;
|
;;
|
||||||
linux*)
|
linux*)
|
||||||
alias docker='sudo docker'
|
alias docker='sudo docker'
|
||||||
|
alias dki='sudo systemctl start docker.service'
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
|
|
@ -8,7 +8,5 @@ case $OSTYPE in
|
||||||
linux*)
|
linux*)
|
||||||
if [[ -f /etc/arch-release ]]; then
|
if [[ -f /etc/arch-release ]]; then
|
||||||
sudo pacman --needed --noconfirm -S docker docker-compose
|
sudo pacman --needed --noconfirm -S docker docker-compose
|
||||||
sudo systemctl enable docker.service
|
|
||||||
sudo systemctl start docker.service
|
|
||||||
fi
|
fi
|
||||||
esac
|
esac
|
||||||
|
|
Loading…
Reference in a new issue