Duplicate images with same id in Docker -
when download image docker-compose file, images duplicated. here docker-compose.yml
version: "3" services: ubuntu: build: ./linux container_name: ubuntu stdin_open: true tty: true
my dockerfile in linux folder
ubuntu
the output of command "$docker images":
repository tag image id created size ubuntu latest ccc7a11d65b1 9 days ago 120 mb ubuntu_ubuntu latest ccc7a11d65b1 9 days ago 120 mb
in dockefile, used from ubuntu, inherited image , did nothing out of it. new image nothing same ubuntu image. , why seeing same id
repository tag image id created size ubuntu latest ccc7a11d65b1 9 days ago 120 mb ubuntu_ubuntu latest ccc7a11d65b1 9 days ago 120 mb it doesn't mean have 240mb occupied same 2 images. means ubuntu , ubuntu_ubuntu point same image , image size 120 mb.
you can below
docker tag ubuntu ubuntu_my and create entry name , same id , size. name , tag reference id. multiple names can point same id.
Comments
Post a Comment