怎样搭建本地dockerrepo?

用docker 的id 登录,然后可以获取4小时的虚拟机,对于实验来说足够了

成都创新互联公司主营洛扎网站建设的网络公司,主营网站建设方案,成都APP应用开发,洛扎h5小程序开发搭建,洛扎网站营销推广欢迎洛扎等地区企业咨询

怎样搭建本地docker repo?

来来来,下一个repo 托管容器

#download registry image

docker run -d -p 5000:5000 --restart always --name register registry:2

秒下成功

怎样搭建本地docker repo?

#download hello-world image

docker pull hello-world

#下好了

docker ps -a

怎样搭建本地docker repo?

#tag & push image to local repostory

docker tag hello-world localhost:5000/hello-world

怎样搭建本地docker repo?

docker push localhost:5000/hello-world

怎样搭建本地docker repo?

#进目录看看image

docker exec -it register /bin/sh

怎样搭建本地docker repo?

goto /var/lib/registry/ , you can found all the images

怎样搭建本地docker repo?

#remove docker image

docker rmi hello-world

怎样搭建本地docker repo?

#download images from local repo 我感觉就是吃饱了撑的

docker pull localhost:5000/hello-world

docker images

怎样搭建本地docker repo?

找到一个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 repo?

#docker rmi konradkleine/docker-registry-frontend:v2

怎样搭建本地docker repo?

到界面找mapping出来的端口,8080是docker repo的web ui,5000是repo的端口

怎样搭建本地docker repo?

怎样搭建本地docker repo?

found the hello world image

怎样搭建本地docker repo?

#tag & push a new image 更新了v2到v3

docker tag konradkleine/docker-registry-frontend:v2 localhost:5000/konradkleine/docker-registry-frontend:v3

怎样搭建本地docker repo?

docker push localhost:5000/konradkleine/docker-registry-frontend:v3

怎样搭建本地docker repo?

refresh repo web ui

怎样搭建本地docker repo?

网站题目:怎样搭建本地dockerrepo?
网址分享:https://www.cdcxhl.com/article32/jdijpc.html

成都网站建设公司_创新互联,为您提供网站设计电子商务移动网站建设定制开发建站公司品牌网站制作

广告

声明:本网站发布的内容(图片、视频和文字)以用户投稿、用户转载内容为主,如果涉及侵权请尽快告知,我们将会在第一时间删除。文章观点不代表本网站立场,如需处理请联系客服。电话:028-86922220;邮箱:631063699@qq.com。内容未经允许不得转载,或转载时需注明来源: 创新互联

成都定制网站网页设计