mirror of
https://github.com/tedkulp/dotfiles
synced 2026-03-05 13:40:18 -05:00
Add docker to linux bootstrap
This commit is contained in:
@@ -51,7 +51,7 @@ if [ "$system_type" = "Linux" ]; then
|
||||
# Install apt stuff
|
||||
sudo apt update -y
|
||||
sudo apt upgrade -y
|
||||
sudo apt install -y zsh software-properties-common python-dev python3-dev python3-pip urlview
|
||||
sudo apt install -y zsh software-properties-common python-dev python3-dev python3-pip urlview apt-transport-https
|
||||
|
||||
# Install node if necessary
|
||||
if ! command -v node >/dev/null 2>&1; then
|
||||
@@ -102,6 +102,17 @@ if [ "$system_type" = "Linux" ]; then
|
||||
if ! command -v powerline-go >/dev/null 2>&1; then
|
||||
go install github.com/justjanne/powerline-go@latest
|
||||
fi
|
||||
|
||||
# Install docker if necessary
|
||||
if ! command -v docker >/dev/null 2>&1; then
|
||||
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
|
||||
echo "deb [arch=amd64 signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
|
||||
sudo apt-get update -y
|
||||
sudo apt-get install docker-ce docker-ce-cli containerd.io -y
|
||||
sudo usermod -aG docker $USER
|
||||
sudo systemctl enable docker.service
|
||||
sudo systemctl enable containerd.service
|
||||
fi
|
||||
fi
|
||||
|
||||
# Oh My ZSH
|
||||
|
||||
Reference in New Issue
Block a user