您当前的位置: 首页 > 慢生活 > 程序人生 网站首页程序人生
10_尚硅谷_Docker_helloworld镜像
发布时间:2022-11-05 11:57:33编辑:雪饮阅读()
命令格式:docker run 镜像名称
可以看到的是本地没有目标镜像时候,则从镜像仓库去拉取,默认拉取版本(tag)是latest
[root@DESKTOP-7ONFN16 ~]# docker run hello-world
Unable to find image 'hello-world:latest' locally
latest: Pulling from library/hello-world
2db29710123e: Pull complete
Digest: sha256:2498fce14358aa50ead0cc6c19990fc6ff866ce72aeb5546e1d59caac3d0d60f
Status: Downloaded newer image for hello-world:latest
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,hello-world,run
相关文章
- 09_尚硅谷_Docker_阿里云镜像加速器配置(配置镜像仓库
- 08_尚硅谷_Docker_CentOS7安装Docker简介(补充知识请
- docker学习笔记第二季(加强)
- docker-compose.yml安裝的mysql如何配置遠程連接
- docker-compose.yml使用本地鏡像(mysql成功連接)
- Dockerfile的使用(基於php官方docker鏡像安裝擴展)
- docker-composer創建項目的默認網絡
- docker-composer脚本編寫系列之nginx與php的結合
- 使用docker-compose一鍵搭建基於node環境的項目
- 解決centos7二進制方式安裝docker啓動dockerd報錯中包