文章目录
镜像
拉取镜像:docker pull
拉取镜像:
docker pull hello-world
- docker默认源是Docker Hub,镜像名可以在在搜索栏搜索
如果是向从其他仓库拉取,可以这么使用
docker pull DOMAIN:PORT/testing/test-image
注意,其中的DOMAIN默认使用http://,所以不用加了
- 默认的tag是latest,即
docker pull hello-world
其实相当于
docker pull hello-world:latest
PS:pull时候也是默认latest。。
其中的lastest是tag,如果想要拉取其他特定tag,指tag即可。除了用tag指明外,也可以使用@摘要(digest)来拉取,e.g.
docker pull hello-world@sha256:45b23dee08af5e43a7fea6c4cf9c25ccf269ee113168c19722f87876677c5cb2
如果想要拉取一个name下的所有tag/digest镜像,可以使用-a参数:
docker pull -a hello-world