hello-world Docker 镜像 - 轩辕镜像

hello-world
library/hello-world
“Hello World!”是一个经典的入门示例,具体而言是最小化Docker化的范例,它通过简单的应用展示了如何利用Docker将程序打包为容器,涵盖基础的镜像构建与容器运行流程,适合初学者快速理解Docker的核心概念及基本操作,直观体现了Docker化的简洁性与入门友好性。
2527 收藏0 次下载activelibrary镜像

Quick reference

  • Maintained by:
    the Docker Community

  • Where to get help:
    the Docker Community Slack, Server Fault, Unix & Linux, or Stack Overflow

Supported tags and respective Dockerfile links

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

Simple Tags

  • linux

  • nanoserver-ltsc2025

  • nanoserver-ltsc2022

Shared Tags

  • latest:

    • linux
    • nanoserver-ltsc2025
    • nanoserver-ltsc2022
  • nanoserver:

    • nanoserver-ltsc2025
    • nanoserver-ltsc2022

Quick reference (cont.)

  • Where to file issues:
    [***]

  • Supported architectures: (more info)
    amd64, arm32v5, arm32v6, arm32v7, arm64v8, i386, mips64le, ppc64le, riscv64, s390x, windows-amd64

  • Published image artifact details:
    repo-info repo's repos/hello-world/ directory (history)
    (image metadata, transfer size, etc)

  • Image updates:
    official-images repo's library/hello-world label
    official-images repo's library/hello-world file (history)

  • Source of this description:
    docs repo's hello-world/ directory (history)

Example output

console
$ 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:
 [***]

For more examples and ideas, visit:
 [***]


$ 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 [***] 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.

用户好评

来自真实用户的反馈,见证轩辕镜像的优质服务

oldzhang的头像

oldzhang

运维工程师

Linux服务器

5

"Docker访问体验非常流畅,大镜像也能快速完成下载。"

免费获取在线技术支持请 提交工单,官方QQ群:13763429 。
轩辕镜像面向开发者与科研用户,提供开源镜像的搜索和访问支持。所有镜像均来源于原始仓库,本站不存储、不修改、不传播任何镜像内容。
官方邮箱:点击复制邮箱
©2024-2026 源码跳动