...
Code Block |
---|
[root@k8s-worker01 ~]# docker search registry INDEX NAME DESCRIPTION STARS OFFICIAL AUTOMATED docker.io docker.io/registry The Docker Registry 2.0 implementation for... 2476 [OK] docker.io docker.io/konradkleine/docker-registry-frontend Browse and modify your Docker registry in ... 217 [OK] docker.io docker.io/hyper/docker-registry-web Web UI, authentication service and event r... 161 [OK] docker.io docker.io/atcol/docker-registry-ui A web UI for easy private/local Docker Reg... 113 [OK] docker.io docker.io/distribution/registry WARNING: NOT the registry official image!!... 57 [OK] docker.io docker.io/marvambass/nginx-registry-proxy Docker Registry Reverse Proxy with Basic A... 44 [OK] |
Info | ||
---|---|---|
| ||
Code Block |
---|
[root@k8s-worker01 ~]# docker run -d -p 5000:5000 --restart always --name registry registry:2
Unable to find image 'registry:2' locally
Trying to pull repository docker.io/library/registry ...
2: Pulling from docker.io/library/registry
c87736221ed0: Pull complete
1cc8e0bb44df: Pull complete
54d33bcb37f5: Pull complete
e8afc091c171: Pull complete
b4541f6d3db6: Pull complete
Digest: sha256:3b00e5438ebd8835bcfa7bf5246445a6b57b9a50473e89c02ecc8e575be3ebb5
Status: Downloaded newer image for docker.io/registry:2
cfbef4ebde24a03fbcc544b93e2f182258bbda004c268458ee6efb6267d75739
[root@k8s-worker01 ~]# docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
cfbef4ebde24 registry:2 "/entrypoint.sh /e..." 13 seconds ago Up 11 seconds 0.0.0.0:5000->5000/tcp registry |