0
点赞
收藏
分享

微信扫一扫

本地 DockerHub:Docker Registry

年迈的代码机器 2022-02-27 阅读 105

Docker Registry Commands

Start your registry

docker run -d -p 5000:5000 --name registry registry:2

Pull (or build) some image from the hub

docker pull ubuntu

Tag the image so that it points to your registry

docker image tag ubuntu localhost:5000/myfirstimage

Push it

docker push localhost:5000/myfirstimage

Pull it back

docker pull localhost:5000/myfirstimage

Now stop your registry and remove all data

docker container stop registry && docker container rm -v registry
举报

相关推荐

0 条评论