Last active
May 14, 2024 10:23
-
-
Save CSpyridakis/0dd4e045dcddc68496c8403c098e0c19 to your computer and use it in GitHub Desktop.
Install docker script
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 | |
| # Run it like this: | |
| # bash <(curl -sL https://gist.githubusercontent.com/CSpyridakis/0dd4e045dcddc68496c8403c098e0c19/raw/0fda1a194f559b05d6e26311c54090abe0cba4ca/install-docker.sh) | |
| # Install docker | |
| curl -fsSL get.docker.com -o get-docker.sh && sh get-docker.sh | |
| # ------------------------------------------------ | |
| # POST INSTALLATION ACTIONS (see: https://docs.docker.com/engine/install/linux-postinstall/) | |
| # Create the docker group if not exist | |
| sudo groupadd docker | |
| # Add your user to the docker group. | |
| sudo usermod -aG docker $USER | |
| # Activate the changes to groups | |
| newgrp docker | |
| # Verify that you can run docker commands without sudo | |
| docker run hello-world |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment