--- title: "hello-world (Docker Test Image)" tags: [docker, test, verification] date: 2026-04-22 --- # hello-world (Docker 官方测试镜像) ## Definition hello-world 是 Docker 官方提供的轻量级测试镜像,用于验证 Docker Engine 是否正确安装。运行成功后输出欢迎信息并退出。 ## Usage ```bash # 验证安装(需 sudo) sudo docker run hello-world # 无 sudo 验证(用户加入 docker 用户组后) docker run hello-world ``` ## Expected Output ``` Hello from Docker! This message shows that your installation appears to be working correctly. ... ``` ## Related Sources - [[如何在ubuntu-server安装-docker-docker-compose]] — 安装验证步骤 ## Related Concepts - [[Docker Engine]] — 被验证的核心组件 - [[Docker 用户组]] — 影响非 sudo 运行方式