Skip to content

Instantly share code, notes, and snippets.

@ThinhPhan
Last active September 11, 2019 08:56
Show Gist options
  • Save ThinhPhan/f0d61c60454bfd917530764f85b50cef to your computer and use it in GitHub Desktop.
Save ThinhPhan/f0d61c60454bfd917530764f85b50cef to your computer and use it in GitHub Desktop.
Setup VPS using CentOS to install libraries, dependencies, tools ...
#!/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