IBM Containers:cf ic cpi(复制命令)失败
IBM Containers: cf ic cpi ( copy command ) fails
IBM Containers 的新手,因此阅读 IBM 文档,此页面;
https://www.ng.bluemix.net/docs/containers/container_images_adding_ov.html#container_images_copying
States: Copy an image from Docker Hub, Bluemix, or your private
repository. You can add the copied image to your private repository,
without downloading it to your computer first, by running the cpi
command.
with the example:
cf ic cpi training/sinatra registry.ng.bluemix.net/my_namespace/my_sinatra:new
我正在 运行 宁 mac,在 docker 命令 window 内,所以
docker images
REPOSITORY TAG IMAGE ID CREATED VIRTUAL SIZE
timdet/docker-whale latest a5bb741c4ac2 22 hours ago 274.3 MB
hello-world latest 0a6ba66e537a 3 months ago 960 B
给我本地和私人 dockerhub { timdet} 上的图片
和
cf ic images
REPOSITORY TAG IMAGE ID CREATED VIRTUAL SIZE
registry.eu-gb.bluemix.net/ibmnode latest 0482321da78d 6 days ago 433.1 MB
registry.eu-gb.bluemix.net/ibmnode v4 0482321da78d 6 days ago 433.1 MB
提供我的 IBM 存储库中的图像。
据我了解,该命令应该将图像从我的本地/dockerHub 复制到 ibm 存储库中。
{ 我有 cf login
& cf ic login
好的 }
当我运行;
cf ic cpi timdet/docker-whale registry.eu-gb.bluemix.net/ic_tim_donovan_org/docker-whale:new
我得到以下输出;
Sending build context to Docker daemon 2.048 kB
Step 0 : FROM timdet/docker-whale
Pulling repository timdet/docker-whale
Error: image timdet/docker-whale:latest not found
FAILED
但我可以通过 docker 图像看到它,甚至可以 docker 拉 ok。
那我错过了什么?
唯一的其他项目是我的 dockerHub 图像打开了私人标志。
看来我已经找到了我自己问题的答案。
我将我原来的 DockerHub 存储库创建为私有存储库。看来您现在可以创建一个私有存储库了。将您的开发和测试保密的缺点是它不能与 IBM Containers 之类的东西共享。
我已经创建了一个 public DockerHub 存储库,然后能够使用复制命令将图像从 DockerHub 复制到我在 Bluemix Containers 中的 IBM Private 存储库。
IBM Containers 的新手,因此阅读 IBM 文档,此页面;
https://www.ng.bluemix.net/docs/containers/container_images_adding_ov.html#container_images_copying
States: Copy an image from Docker Hub, Bluemix, or your private repository. You can add the copied image to your private repository, without downloading it to your computer first, by running the cpi command.
with the example:
cf ic cpi training/sinatra registry.ng.bluemix.net/my_namespace/my_sinatra:new
我正在 运行 宁 mac,在 docker 命令 window 内,所以
docker images
REPOSITORY TAG IMAGE ID CREATED VIRTUAL SIZE
timdet/docker-whale latest a5bb741c4ac2 22 hours ago 274.3 MB
hello-world latest 0a6ba66e537a 3 months ago 960 B
给我本地和私人 dockerhub { timdet} 上的图片 和
cf ic images
REPOSITORY TAG IMAGE ID CREATED VIRTUAL SIZE
registry.eu-gb.bluemix.net/ibmnode latest 0482321da78d 6 days ago 433.1 MB
registry.eu-gb.bluemix.net/ibmnode v4 0482321da78d 6 days ago 433.1 MB
提供我的 IBM 存储库中的图像。
据我了解,该命令应该将图像从我的本地/dockerHub 复制到 ibm 存储库中。
{ 我有 cf login
& cf ic login
好的 }
当我运行;
cf ic cpi timdet/docker-whale registry.eu-gb.bluemix.net/ic_tim_donovan_org/docker-whale:new
我得到以下输出;
Sending build context to Docker daemon 2.048 kB
Step 0 : FROM timdet/docker-whale
Pulling repository timdet/docker-whale
Error: image timdet/docker-whale:latest not found
FAILED
但我可以通过 docker 图像看到它,甚至可以 docker 拉 ok。 那我错过了什么?
唯一的其他项目是我的 dockerHub 图像打开了私人标志。
看来我已经找到了我自己问题的答案。
我将我原来的 DockerHub 存储库创建为私有存储库。看来您现在可以创建一个私有存储库了。将您的开发和测试保密的缺点是它不能与 IBM Containers 之类的东西共享。我已经创建了一个 public DockerHub 存储库,然后能够使用复制命令将图像从 DockerHub 复制到我在 Bluemix Containers 中的 IBM Private 存储库。