Docker - What is proper way to rebuild and push updated image to docker cloud?

别来无恙 提交于 2019-11-30 10:57:31

I found the problem, thanks to @lorenzvth7!

I've had two images with same tag (which i was pushing to cloud).

Solution is:

  1. Inspect your images and find two or more with the same tag:

    docker images 
    
  2. Delete them:

    docker rmi --force 'image id'
    
  3. Thats it! Follow steps from my question above.

Another solution, albeit bruteforce, is to rebuild with the --no-cache flag before pushing again.

docker rmi --force my-djnago-app:latest

docker build -t my-djnago-app:latest . --no-cache

docker push my-djnago-app:latest
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!