J2897

Simplest way to install Docker

Jun 29th, 2024 (edited)
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!

Download the convenience script and test:

curl -fsSL https://get.docker.com -o get-docker.sh
sudo sh ./get-docker.sh --dry-run

If all seems well, proceed with the install:

sudo sh get-docker.sh

Now test the install via a regular user account:

sudo usermod -aG docker J2897
newgrp docker
docker run hello-world

Note: The id command is useful for checking group membership.

Add Comment
Please, Sign In to add comment