Fork me on GitHub

Docker之开源的Docker Registry WebUI

简介

基于WebUI浏览和操作一个私有Docker Registry
项目GitHub地址
项目Wiki地址

实践操作

环境说明

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
[root@linux-node9 ~]# cat /etc/redhat-release
CentOS Linux release 7.2.1511 (Core)
[root@linux-node9 ~]# uname -r
3.10.0-327.el7.x86_64
[root@linux-node9 ~]# uname -m
x86_64
[root@linux-node9 ~]# docker version
Client:
Version: 17.12.0-ce
API version: 1.35
Go version: go1.9.2
Git commit: c97c6d6
Built: Wed Dec 27 20:10:14 2017
OS/Arch: linux/amd64

Server:
Engine:
Version: 17.12.0-ce
API version: 1.35 (minimum version 1.12)
Go version: go1.9.2
Git commit: c97c6d6
Built: Wed Dec 27 20:12:46 2017
OS/Arch: linux/amd64
Experimental: false

部署

1
2
3
4
5
6
7
8
9
[root@linux-node9 ~]# docker run -d -p 5000:5000 --name registry registry:2
9dfc41455953b97cd3df5f036a3fa532b70af5f04da2d31d72a0ec6eafb4c612
[root@linux-node9 ~]# docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
9dfc41455953 registry:2 "/entrypoint.sh /etc…" 3 seconds ago Up 3 seconds 0.0.0.0:5000->5000/tcp registry
[root@linux-node9 ~]# docker run -d -e ENV_DOCKER_REGISTRY_HOST=192.168.200.109 -e ENV_DOCKER_REGISTRY_PORT=5000 -p 8080:80 konradkleine/docker-registry-frontend:v2
[root@linux-node9 ~]# docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
ae4e32fa279d konradkleine/docker-registry-frontend:v2 "/bin/sh -c $START_S…" 5 minutes ago Up 5 minutes 443/tcp, 0.0.0.0:8080->80/tcp clever_wiles

push到仓库两个测试images

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
[root@linux-node9 ~]# docker tag nginx:1.12 localhost:5000/nginx:1.12
[root@linux-node9 ~]# docker push localhost:5000/nginx:1.12
The push refers to repository [localhost:5000/nginx]
4912a8274467: Pushed
fc1d0df815c4: Pushed
2ec5c0a4cb57: Pushed
1.12: digest: sha256:9342f82b178a4325aec19f997400e866bf7c6bf9d59dd74e1358f971159dd7b8 size: 948
[root@linux-node9 ~]# docker tag mysql:5.7 localhost:5000/mysql:5.7
[root@linux-node9 ~]# docker push localhost:5000/mysql:5.7
The push refers to repository [localhost:5000/mysql]
254215a9b948: Pushed
fcac5885b034: Pushed
7800b09ed0f6: Pushed
5c2d4b37bd69: Pushed
45fb4a2ab5eb: Pushed
8b2d012e71d9: Pushed
19aa284e9bf3: Pushed
889744378e18: Pushed
ae12d30e1dfc: Pushed
4bcdffd70da2: Pushed
5.7: digest: sha256:83204528ade605ce7ff02bead28378f7055e91d4c73f18e099dcf3126dbb240a size: 2410

应用

Home

Repositories

Details for repository

Details for tag

参考资料

http://www.cnblogs.com/junneyang/p/5250527.html

======================================================
希望各位朋友支持一下

本文作者:dongsheng
本文地址https://mds1455975151.github.io/archives/46af2f7a.html
版权声明:转载请注明出处!

坚持技术分享,您的支持将鼓励我继续创作!