Installation and Verification
Download Docker Desktop for your operating system from docs.docker.com/engine/install.
| Platform | Requirement |
|---|---|
| macOS | Docker Desktop (Intel or Apple Silicon build) |
| Windows | Windows 10/11 64-bit; virtualization (WSL 2 or Hyper-V) enabled |
| Linux | Docker Engine from the distribution or Docker's own apt/yum repository |
Verify the installation:
docker --version # client version
docker version # client and server (daemon) detail
docker info # system-wide information; confirms the daemon is reachable
docker compose version # Compose v2, bundled with modern Docker
If docker version reports a client but no server, the daemon is not running. On Linux,
systemctl status docker will confirm.
Installing on an Ubuntu server
For a cloud VM such as an EC2 instance running Ubuntu Server:
sudo apt update
sudo apt install docker.io
sudo docker version
# add your user to the docker group so sudo is no longer needed
sudo usermod -a -G docker ubuntu
exit
Log out and back in — or restart the shell — for the group change to take effect. After
reconnecting, docker version should work without sudo.
Adding a user to the
dockergroup grants effective root on the host, because that user can mount the host filesystem into a privileged container. Treat membership of this group as equivalent to sudo access.