大家好,问各位一个问题,我搭建了私有仓库registry:5000,通过docker run 可以直接下载私有仓库中的镜像,然后在运 行。但是通过api调用的时候却返回 404 No such image: registry:5000/redis:v2.6 (tag: v2.6) 。直接 docker pull registry:5000/redis:v2.6也可以从私有仓库中获取镜像,但就是无法通过远程api执行,这个问题大家遇 到过吗
远程api的json串:{"Env":["CLOUD_URL=
http://192.168.7.155:8080/starott_cloud_client/","MYNAME=redis"],"Cmd":["/run.sh"],"Image":"registry:5000/redis:v2.6","ExposedPorts":{"6379/tcp":{},"222/tcp":{}},"Volumes":{"/usr/local/webserver/redis/db":{}},"HostConfig":{"Binds":["/data/mnt:/usr/local/webserver/redis/db:rw"],"PortBindings":{"6379/tcp":[{"HostPort":"6379"}],"222/tcp":[{"HostPort":"222"}]},"Privileged":true,"Dns":["192.168.5.225","192.168.5.226"],"NetworkMode":"bridge","LogConfig":{"Type":"none","Config":{}}}}
这个串在存在镜像 registry:5000/redis:v2.6 的机器上运行是没有问题的