[英]How to run docker image in private registry
I have a private insecure registry on an Ubuntu Server 18.04 (using docker-compose), whose IP is let's say 192.168.168.168;我在 Ubuntu 服务器 18.04(使用 docker-compose)上有一个私有的不安全注册表,其 IP 假设为 192.168.168.168; when on a Windows client I browse from Chrome to在 Windows 客户端上时,我从 Chrome 浏览到
http://192.168.168.168:5000/v2/_catalog http://192.168.168.168:5000/v2/_catalog
I get我明白了
{"repositories":["hello-world2","mywebservice"]}
which is ok, since I pushed them to the private registry.没关系,因为我将它们推送到私人注册表。 So:所以:
I already tried我已经试过了
docker run 192.168.168.168:5000/mywebservice
but got但得到了
Unable to find image '192.168.168.168:5000/mywebservice:latest' locally无法在本地找到图像“192.168.168.168:5000/mywebservice:latest”
A Docker registry is not a Docker Engine and it cannot run containers. Docker 注册表不是 Docker 引擎,它不能运行容器。
If one wants to run a Docker container on the same server where the Docker registry is, it is necessary to pull the image from the registry to a Docker client (using docker pull localhost:5000/image_name
), and then run it the usual way. If one wants to run a Docker container on the same server where the Docker registry is, it is necessary to pull the image from the registry to a Docker client (using docker pull localhost:5000/image_name
), and then run it the usual way .
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.