dotfiles/apps/docker.sh

24 lines
436 B
Bash
Raw Normal View History

2020-09-18 04:16:15 +00:00
#!/bin/bash
DIR=$(readlink -f $(dirname $0))
. $DIR/../env.sh
# install docker
case "$PM" in
apt)
sudo apt install -y docker.io docker-compose
! which pip3 && $ROOT/python/install.sh
sudo pip3 install docker-compose
;;
pacman)
sudo pacman -S docker docker-compose
;;
esac
sudo systemctl enable docker
sudo systemctl start docker
# configuration
sudo usermod -aG docker $USER