用docker 的id 登錄,然后可以獲取4小時(shí)的虛擬機(jī),對于實(shí)驗(yàn)來說足夠了
成都創(chuàng)新互聯(lián)公司主營洛扎網(wǎng)站建設(shè)的網(wǎng)絡(luò)公司,主營網(wǎng)站建設(shè)方案,成都APP應(yīng)用開發(fā),洛扎h5小程序開發(fā)搭建,洛扎網(wǎng)站營銷推廣歡迎洛扎等地區(qū)企業(yè)咨詢
來來來,下一個(gè)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
#進(jìn)目錄看看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
找到一個(gè)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