Last active
July 5, 2021 06:23
-
-
Save espeon/2602b6b7651ff8edf38be01bd754a08f to your computer and use it in GitHub Desktop.
docker-setup
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # /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