Skip to content

Instantly share code, notes, and snippets.

@espeon
Last active July 5, 2021 06:23
Show Gist options
  • Select an option

  • Save espeon/2602b6b7651ff8edf38be01bd754a08f to your computer and use it in GitHub Desktop.

Select an option

Save espeon/2602b6b7651ff8edf38be01bd754a08f to your computer and use it in GitHub Desktop.
docker-setup
# /bin/bash
# **be warned:** this might not work as an actual bash script
# set up docker
curl -fsSL https://get.docker.com -o get-docker.sh
sudo sh get-docker.sh
# create and add your user to the "docker" group
sudo groupadd docker
sudo usermod -aG docker $USER
newgrp docker
docker run hello-world
# configure docker to start on boot
sudo systemctl enable docker.service
sudo systemctl enable containerd.service
# install docker-compose
pip install docker-compose
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment