Created
July 25, 2020 08:34
-
-
Save zlocate/19ae64fbb1630ef7b2db5e41f0718be4 to your computer and use it in GitHub Desktop.
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 | |
| # Installs docker-ce, enable and running service (working with Debian, Ubuntu, Centos) | |
| URL="https://get.docker.com" | |
| # Run installation script | |
| sudo bash <(curl -s $URL) | |
| # Add current user to docker group (it's insecure because it give ability to escalate permissions to root) | |
| # Do not use it in production (check rootless mode) | |
| sudo usermod -aG docker ${whoami} | |
| # Enable (sets to autostart) | |
| sudo systemctl docker enable | |
| # Run service | |
| sudo systemctl docker start |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment