我尝试按照CLI说明部署自定义Docker镜像。
我推了图像
docker push registry.ng.bluemix.net/XXX/XXXXXX/centos-docker-broker:mytag
输出似乎很好:
The push refers to a repository [registry.ng.bluemix.net/XXX/XXXXXX/centos-docker-broker] (len: 1)
Sending image list
Pushing repository registry.ng.bluemix.net/XXX/XXXXXX/centos-docker-broker (1 tags)
Image ebdbe10e9b33 already pushed, skipping
Image 366219586e86 already pushed, skipping
Image fa5be2806d4c already pushed, skipping
Image 501f51238f9e already pushed, skipping
Image 1a895dd3954a already pushed, skipping
Image 755bf916afd3 already pushed, skipping
Image e94ed3d5b932 already pushed, skipping
Image 3fa79d064cb7 already pushed, skipping
Image 528af6b6dd27 already pushed, skipping
Image 7c1b7e04f409 already pushed, skipping
Image c50c1b0883b3 already pushed, skipping
Pushing tag for rev [c50c1b0883b3] on {https://registry.ng.bluemix.net/v1/repositories/XXX/XXXXXX/centos-docker-broker/tags/mytag}
但是,如果我列出图片,则无法看到自定义图片。我只看到默认的。
$ cf ic images
REPOSITORY TAG IMAGE ID CREATED VIRTUAL SIZE
registry.ng.bluemix.net/ibm-mobilefirst-starter latest 5996bb6e51a1 8 days ago 770.4 MB
registry.ng.bluemix.net/ibm-node-strong-pm latest ef21e9d1656c 3 weeks ago 528.7 MB
registry.ng.bluemix.net/ibmliberty latest 2209a9732f35 3 weeks ago 492.8 MB
registry.ng.bluemix.net/ibmnode latest 8f962f6afc9a 3 weeks ago 429 MB
我的形象在哪里?
答案 0 :(得分:1)
似乎我没有将本地docker命令连接到外部主机,例如
export DOCKER_HOST=tcp://containers-api.ng.bluemix.net:8443
export DOCKER_CERT_PATH=/Users/xxx/.ice/certs/containers-api.ng.bluemix.net
export DOCKER_TLS_VERIFY=1