I’m started using a docker with basic docker image Linux - x86-64 ( latest ). I have pulled this image with the command
docker pull ubuntu
I run this docker using the command
docker run -it ea4c82dcd15a /bin/bash
ea4c82dcd15a” is the IMAGE ID for the image.
This allows me to run the image successfully and work with it. But after doing some work in the container and storing some of my small work data into the container, committing the docker makes the docker image size too huge as it sometimes crosses the size in GBs.
I use below command to commit the docker
docker commit -p -a <author> -m <message> <container_id> <label>:<tag>
But as I told you this is creating a docker image including my work data but with a large size of the image.
Can anyone please clear if I’m doing anything wrong in the whole process or there is any other reason for this is happening?
Please help guys!!
Thanks in Advance…