What are <none> repository and tags? Why do they appear when I use docker build? -
this docker images shows before run docker build.
$ docker images repository tag image id created virtual size myapp latest a38da0bd9e0b 6 seconds ago 523.8 mb golang onbuild b4997c557048 10 days ago 517.2 mb after make changes myapp source code, run docker build -t myapp . , end images named <none>.
$ docker images repository tag image id created virtual size myapp latest a38da0bd9e0b less second ago ago 523.8 mb <none> <none> e4209f97e819 10 minutes ago 523.8 mb golang onbuild b4997c557048 10 days ago 517.2 mb i know can remove them docker rmi <image id>, why happen in first place? how can prevent happening? dockerfile i'm building looks this.
from golang:onbuild expose 8080
if reassign tag or image name image, image lose tag or name. it's simple. myapp repo image tagged latest id a38da0bd9e0b used named , tagged on image id e4209f97e819.
Comments
Post a Comment