我们可以在单个私人仓库上托管多个图像吗?
喜欢
> ubuntu:12.04
> ubuntu:14.04
所以我的私人回购像MYREPO:ubuntu:12.04和ubuntu:14.04
最佳答案
是.
原文链接:https://www.f2er.com/docker/435906.html# 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