Last active
September 11, 2019 08:56
-
-
Save ThinhPhan/f0d61c60454bfd917530764f85b50cef to your computer and use it in GitHub Desktop.
Setup VPS using CentOS to install libraries, dependencies, tools ...
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/sh | |
# Check OS Name and version | |
cat /etc/os-release | |
# Tools | |
# Docker | |
curl -fsSL https://get.docker.com -o get-docker.sh | |
sudo sh get-docker.sh | |
# Add your user to the docker group | |
# or `sudo usermod -aG docker $USERNAME` | |
sudo usermod -aG docker $(whoami) | |
# Finally, start the Docker service: | |
sudo systemctl start docker.service | |
sudo systemctl status docker | |
# Set Docker to start automatically at boot time | |
sudo systemctl enable docker.service |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment