Note: To prevent Ctrl+C, Ctrl+V mistakes, you have to add
sudo
on your own! Sorry :)
To install docker
curl -sS https://get.docker.com/ | sh
Check docker installation
service docker status
Check docker functionality
docker run hello-world
You have to recieve a success message.
Add current user to docker group
usermod -aG docker USERNAME_HERE
NOTE: Instead of USERNAME_HERE put your username.
test it:
cat /etc/group | grep docker