Run Docker Hello World

docker

Updated August 29, 2026

The hello-world image is a small way to check that the Docker CLI can reach an engine and that the engine can pull and start a container:

docker run --rm hello-world

If the image is not local, Docker pulls it from the configured registry. --rm removes the stopped container after its message is printed; the image remains cached. Inspect the result with:

docker image ls hello-world
docker ps -a

A successful command verifies basic connectivity, image retrieval, and container startup. It does not verify application ports, volumes, Compose, or production security. If you see a daemon connection error, start the Linux service or Docker Desktop. If you see a permission error on Linux, fix the socket/group setup carefully rather than making the socket world-writable.

Sources

related.

Ruslan Osipov

Ruslan Osipov

About the author