我想这个问题可能已经问过很多遍了,但是从其他Stackoverflow帖子中看不到任何答案,我仍然无法解决。所以这是正在发生的事情:
docker build -f dockerfile -t joesan / my-image
docker login -u myuser -p mypass
我收到登录成功消息
docker push joesan / my-image
但是,一旦执行第3步,就会出现以下错误:
result
0 ([ginger, onion, soy_sauce, chicken:cinnamon], [cardamom, coconut, pumpkin])
1 ([cinnamon, onion, soy_sauce, chicken:ginger], [cardamom, coconut, pumpkin])
2 ([cinnamon, ginger, soy_sauce, chicken:onion], [cardamom, coconut, pumpkin])
3 ([cinnamon, ginger, onion, chicken:soy_sauce], [cardamom, coconut, pumpkin])
4 ([chicken, onion, soy_sauce, cinnamon:ginger], [cardamom, coconut, pumpkin])
5 ([chicken, ginger, soy_sauce, cinnamon:onion], [cardamom, coconut, pumpkin])
6 ([chicken, ginger, onion, cinnamon:soy_sauce], [cardamom, coconut, pumpkin])
7 ([chicken, cinnamon, soy_sauce, ginger:onion], [cardamom, coconut, pumpkin])
8 ([chicken, cinnamon, onion, ginger:soy_sauce], [cardamom, coconut, pumpkin])
9 ([chicken, cinnamon, ginger, onion:soy_sauce], [cardamom, coconut, pumpkin])
10 ([pumpkin, cardamom:coconut], [chicken, cinnamon, ginger, onion, soy_sauce])
11 ([coconut, cardamom:pumpkin], [chicken, cinnamon, ginger, onion, soy_sauce])
12 ([cardamom, coconut:pumpkin], [chicken, cinnamon, ginger, onion, soy_sauce])
我什至尝试在推送之前标记图像,但仍然无法正常工作。有解决办法吗?
答案 0 :(得分:0)
好,对我有用的是将Docker集线器中的项目存储库设置为公共。所有这些都将存储库在我的Docker集线器中标记为私有,这导致了拒绝访问消息。一旦我将回购从私人改为公共,我就能够成功推送!