Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/svg/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
具有多个映像的Docker私有回购_Docker - Fatal编程技术网

具有多个映像的Docker私有回购

具有多个映像的Docker私有回购,docker,Docker,我们可以在单个私有回购上托管多个映像吗 像 ubuntu:12.04 ubuntu:14.04 所以我的私人回购协议,比如MYREPO:ubuntu:12.04和ubuntu:14.04,是的 # Create a container docker run --name image1 -it busybox echo Image1 # Commit container to new image docker commit image1 amjibaly/stuff:image1 # Push t

我们可以在单个私有回购上托管多个映像吗

  • ubuntu:12.04
  • ubuntu:14.04
  • 所以我的私人回购协议,比如MYREPO:ubuntu:12.04和ubuntu:14.04,是的

    # Create a container
    docker run --name image1 -it busybox echo Image1
    # Commit container to new image
    docker commit image1 amjibaly/stuff:image1
    # Push to dockerhub repo
    docker push amjibaly/stuff:image1
    
    # Create a second container
    docker run --name image2 -it busybox echo Image2
    # Commit container to new image
    docker commit image2 amjibaly/stuff:image2
    # Push to same dockerhub repo with different tag
    docker push amjibaly/stuff:image2
    

    我不明白,你能详细说明一下吗?私有回购名称必须以你的私有域名开头,你甚至不能托管ubuntu:14.04,因为你必须将它重命名/标记为127.0.0.1:5000/ubuntu:v0@user2915097我的问题是,我可以在单个专用Docker Hub上托管多个图像吗Repo@LingxiaoXia我明白你的意思,但我的问题是我能在一个私有Docker Hub Repo上托管多个图像吗?我以前运行过上面的命令将它们粘贴到此处,因此我无法帮助您,除非您描述正在运行的确切命令以及您看到的错误消息。您粘贴的同一命令适用于2个图像,但在第三个图像之后,它向我发送http 500元数据错误我能够添加第三个图像,没有任何问题,我建议你联系我support@docker.com看看为什么你会得到500分。好的,我明天会试试,通过每次运行提交更改多次标记图像,让你知道结果。