Installing Docker

Install

OSHow
Windows 10/11Docker Desktop (uses WSL 2)
macOSDocker Desktop (Intel or Apple silicon)
Ubuntu / DebianDocker Engine from docker.com's apt repository
# Linux: allow your user to run docker without sudo (log out and in afterwards)
sudo usermod -aG docker $USER

Verify the Installation

Example

Check the client and server versions, then run the official test image:

docker version
docker run hello-world

Example output

Client:
 Version:           27.3.1
Server: Docker Engine - Community
 Engine:
  Version:          27.3.1

Unable to find image 'hello-world:latest' locally
latest: Pulling from library/hello-world
Status: Downloaded newer image for hello-world:latest

Hello from Docker!
This message shows that your installation appears to be working correctly.