sudo docker pull nginx
Using default tag: latest
latest: Pulling from library/nginx
42c077c10790: Already exists
62c70f376f6a: Pull complete
915cc9bd79c2: Pull complete
75a963e94de0: Pull complete
7b1fab684d70: Pull complete
db24d06d5af4: Pull complete
Digest: sha256:2bcabc23b45489fb0885d69a06ba1d648aeda973fae7bb981bafbb884165e514
Status: Downloaded newer image for nginx:latest
docker.io/library/nginx:latest
sudo docker tag nginx localhost:5000/nginx
sudo docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
nginx latest 0e901e68141f 10 days ago 142MB
localhost:5000/nginx latest 0e901e68141f 10 days ago 142MB
sudo docker push localhost:5000/nginx
Using default tag: latest
The push refers to repository [localhost:5000/nginx]
33e3df466e11: Pushed
747b7a567071: Pushed
57d3fc88cb3f: Pushed
53ae81198b64: Pushed
58354abe5f0e: Pushed
ad6562704f37: Pushed
latest: digest: sha256:25dedae0aceb6b4fe5837a0acbacc6580453717f126a095aa05a3c6fcea14dd4 size: 1570
sudo docker image remove nginx
Untagged: nginx:latest
Untagged: nginx@sha256:2bcabc23b45489fb0885d69a06ba1d648aeda973fae7bb981bafbb884165e514
sudo docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
localhost:5000/nginx latest 0e901e68141f 10 days ago 142MB
sudo docker pull localhost:5000/nginx
Using default tag: latest
latest: Pulling from nginx
Digest: sha256:25dedae0aceb6b4fe5837a0acbacc6580453717f126a095aa05a3c6fcea14dd4
Status: Image is up to date for localhost:5000/nginx:latest
localhost:5000/nginx:latest
sudo docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
9f181a1ab828 registry:2 "/entrypoint.sh /etc…" 2 days ago Up About an hour 0.0.0.0:5000->5000/tcp, :::5000->5000/tcp registry
sudo docker container stop registry
registry
No comments:
Post a Comment