Installing Docker
The quickest way on Ubuntu or Debian is Dockerโs convenience script. Read it before you run it โ thatโs a good habit for any script piped from the internet.
curl -fsSL https://get.docker.com -o get-docker.shless get-docker.sh # read what it doessudo sh get-docker.shsudo usermod -aG docker "$USER" # run docker without sudo (log out and back in)macOS and Windows
Section titled โmacOS and WindowsโInstall Docker Desktop from docker.com. It runs a small Linux VM behind the scenes, because containers need a Linux kernel.
Check it works
Section titled โCheck it worksโdocker run hello-worldYou should see Hello from Docker!. Behind that message, Docker looked for the image
locally, pulled it from Docker Hub, created a container and ran it.