BlueXIII's Blog

热爱技术,持续学习

0%

Registry简易搭建

参考

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# 安装registry
docker run -d --name registry -p 5000:5000 -v /dubhe/registry:/var/lib/registry registry:2
docker run -d --name registry --network host -v /dubhe/registry:/var/lib/registry registry:2

# 配置daemon.json并测试
docker image tag ubuntu 10.193.36.33:5000/myfirstimage
docker push 10.193.36.33:5000/myfirstimage
docker pull 10.193.36.33:5000/myfirstimage

# 安装UI
docker run -d --name registry-ui \
-e ENV_DOCKER_REGISTRY_HOST=10.193.36.33 \
-e ENV_DOCKER_REGISTRY_PORT=5000 \
-p 8080:80 \
konradkleine/docker-registry-frontend:v2

http://10.193.36.33:8080