部署docker注册表服务器registry
跳到导航
跳到搜索
Run a local registry
这个老的教程了 请看部署私有Docker Registry Use a command like the following to start the registry container:
docker run -d -p 5000:5000 --restart=always --name registry registry:2
root@ip-172-31-15-243:~/test# docker ps -a CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES e33858cfa397 registry:2 "/entrypoint.sh /etc…" 58 seconds ago Up 57 seconds 0.0.0.0:5000->5000/tcp #把一个容器提交成为镜像 327docker commit e33858cfa397 127.0.0.1:5000/my_image:v1 328docker pull 127.0.0.1:5000/my_image:v1