Last active
August 11, 2021 07:42
-
-
Save saivarunk/4ee1e84ac00a1ec16b57cf58b00b9e88 to your computer and use it in GitHub Desktop.
Installing Docker
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
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