docs/hello-world
Docker Library Bot 1d93e239d4 Run update.sh 2025-08-13 16:10:19 -07:00
..
README-short.txt Update hello-world short description in minor way 2015-08-07 14:45:37 -07:00
README.md Run update.sh 2025-08-13 16:10:19 -07:00
content.md Run update.sh 2025-08-13 16:10:19 -07:00
github-repo Add github-repo file to every image repo 2016-05-12 16:33:19 -07:00
license.md Add several missing "license.md" files (especially for docker-library images) 2017-10-25 14:47:43 -07:00
logo.png logos for all the things 2014-08-06 16:37:56 -06:00
maintainer.md Refactor the way information (especially links) are presented 2017-04-21 17:48:19 -07:00
metadata.json Add Docker Hub categories (#2446) 2024-05-17 11:44:00 -07:00
update.sh Add note that "hello-world" can run as an arbitrary user 2022-09-30 14:55:22 -07:00

README.md

Quick reference

Supported tags and respective Dockerfile links

(See "What's the difference between 'Shared' and 'Simple' tags?" in the FAQ.)

Simple Tags

Shared Tags

Quick reference (cont.)

Example output

$ docker run hello-world

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

To generate this message, Docker took the following steps:
 1. The Docker client contacted the Docker daemon.
 2. The Docker daemon pulled the "hello-world" image from the Docker Hub.
    (amd64)
 3. The Docker daemon created a new container from that image which runs the
    executable that produces the output you are currently reading.
 4. The Docker daemon streamed that output to the Docker client, which sent it
    to your terminal.

To try something more ambitious, you can run an Ubuntu container with:
 $ docker run -it ubuntu bash

Share images, automate workflows, and more with a free Docker ID:
 https://hub.docker.com/

For more examples and ideas, visit:
 https://docs.docker.com/get-started/


$ docker images hello-world
REPOSITORY    TAG       IMAGE ID       SIZE
hello-world   latest    1b44b5a3e06a   10.07kB

logo

How is this image created?

This image is a prime example of using the scratch image effectively. See hello.c in https://github.com/docker-library/hello-world for the source code of the hello binary included in this image.

Because this image consists of nothing but a single static binary which prints some text to standard output, it can trivially be run as any arbitrary user (docker run --user $RANDOM:$RANDOM hello-world, for example).

License

View license information for the software contained in this image.

As with all Docker images, these likely also contain other software which may be under other licenses (such as Bash, etc from the base distribution, along with any direct or indirect dependencies of the primary software being contained).

Some additional license information which was able to be auto-detected might be found in the repo-info repository's hello-world/ directory.

As for any pre-built image usage, it is the image user's responsibility to ensure that any use of this image complies with any relevant licenses for all software contained within.