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


waht i'm doing now:

dockerfile:

from python:3.5.1  env pythonunbuffered 1  run mkdir /www workdir /www add deps.txt /www/ run pip3 install -r deps.txt add . /www/ run chmod 0755 /www/docker-init.sh 

build command:

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

tagging:

docker tag my-djnago-app:latest lolorama/my-djnago-app-img:latest 

pushing:

docker push lolorama/my-djnago-app-img:latest 

after these steps repository image haven't been updated. "layer exists" message.

the push refers repository [docker.io/lolorama/my-django-app-img] fd5aa641b308: layer exists d9c60c6f98e8: layer exists d9d14867f6d7: layer exists 64ce166099ca: layer exists 73b670e35c69: layer exists 5f70bf18a086: layer exists 9ea142d097a5: layer exists 52f5845b1de0: layer exists e7fadb3ab9d4: layer exists cef72744de05: layer exists 591569fa6c34: layer exists 998608e2fcd4: layer exists c12ecfd4861d: layer exists 

what i'm doing wrong?

i found problem, @lorenzvth7!

i've had 2 images same tag (which pushing cloud).

solution is:

  1. inspect images , find 2 or more same tag:

    docker images  
  2. delete them:

    docker rmi --force 'image id' 
  3. thats it! follow steps question above.

Comments

Popular posts from this blog

Ansible - ERROR! the field 'hosts' is required but was not set -

customize file_field button ruby on rails -

SoapUI on windows 10 - high DPI/4K scaling issue -