拙网论坛

 找回密码
 立即注册
搜索
热搜: 活动 交友 discuz
查看: 234|回复: 0

docker run hello-world

[复制链接]

949

主题

1001

帖子

3736

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
3736
发表于 2019-9-30 10:38:46 | 显示全部楼层 |阅读模式

使用docker来测试一下Hello-World,通过输入docker pull hello-world来拉取hello-world镜像,或者直接:sudo docker run hello-world

  1. lishimin@tang:~$ sudo docker run hello-world
  2. Unable to find image 'hello-world:latest' locally
  3. latest: Pulling from library/hello-world
  4. 1b930d010525: Pull complete
  5. Digest: sha256:b8ba256769a0ac28dd126d584e0a2011cd2877f3f76e093a7ae560f2a5301c00
  6. Status: Downloaded newer image for hello-world:latest

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

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

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

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

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

  23. lishimin@tang:~$
复制代码
出现上图的内容说明hello-world运行成功。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|抱朴守拙BBS

GMT+8, 2025-5-25 23:18 , Processed in 0.204858 second(s), 22 queries .

Powered by Discuz! X3.4

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表