用docker 的id 登录,然后可以获取4小时的虚拟机,对于实验来说足够了
来来来,下一个repo 托管容器
#download registry image
docker run -d -p 5000:5000 --restart always --name register registry:2
秒下成功
#download hello-world image
docker pull hello-world
#下好了
docker ps -a
#tag & push image to local repostory
docker tag hello-world localhost:5000/hello-world
docker push localhost:5000/hello-world
#进目录看看image
docker exec -it register /bin/sh
goto /var/lib/registry/ , you can found all the images
#remove docker image
docker rmi hello-world
#download images from local repo 我感觉就是吃饱了撑的
docker pull localhost:5000/hello-world
docker images
找到一个docker repo的web ui
https://hub.docker.com/r/konradkleine/docker-registry-frontend
docker run \
-d \
-e ENV_DOCKER_REGISTRY_HOST=registry \
-e ENV_DOCKER_REGISTRY_PORT=5000 \
-p 8080:80 \
--link register:registry \
konradkleine/docker-registry-frontend:v2
#请注意register为local repo,registry为web ui
#眼睛一闭开始下载
#docker rmi konradkleine/docker-registry-frontend:v2
到界面找mapping出来的端口,8080是docker repo的web ui,5000是repo的端口
found the hello world image
#tag & push a new image 更新了v2到v3
docker tag konradkleine/docker-registry-frontend:v2 localhost:5000/konradkleine/docker-registry-frontend:v3
docker push localhost:5000/konradkleine/docker-registry-frontend:v3
refresh repo web ui
免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。