Skip to content

Instantly share code, notes, and snippets.

@saivarunk
Last active August 11, 2021 07:42
Show Gist options
  • Save saivarunk/4ee1e84ac00a1ec16b57cf58b00b9e88 to your computer and use it in GitHub Desktop.
Save saivarunk/4ee1e84ac00a1ec16b57cf58b00b9e88 to your computer and use it in GitHub Desktop.
Installing Docker
sudo apt-get update
sudo apt-get install docker-ce docker-ce-cli containerd.io
sudo docker run hello-world # Command to verify Docker is installed.
## Adding your user to Docker group - Recommended Step
sudo groupadd docker
sudo usermod -aG docker $USER
## Logout and login back to Ubuntu after the above two comamnds.
## Now, you can run the docker commands without sudo.
docker run hello-world # Verify if you user is added to docker by running this command.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment