Skip to content

Install Docker and verify it works

Select an icon to see what it is.

Step 6 of 6

hello-world proves the whole path

docker run hello-world pulls a tiny image, creates a container, runs it and prints a welcome message. If it works, the CLI, daemon, registry access and runtime are all fine. Two common errors: the daemon is not running, or your user may not use the socket.

$ docker run --rm hello-world
PrevNext

Expected output

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

Try it yourself

Check your setup from the outside in.

$ docker --version
$ docker version
$ docker info --format '{{.Driver}} {{.DockerRootDir}} {{.CgroupVersion}}'
$ docker run --rm hello-world

Quiz

1. Does docker --version prove the daemon is running?
2. Which command shows the storage driver and cgroup version?
3. What does a successful hello-world run show?