Docker Issue -Image State not getting saved

I am using docker on ubuntu. I used the fresh image of ubuntu and installed couple of package on that java , git , chef-solo. I saved the image using command
sudo docker commit

But now when I am goint back to that , I could see only probably half of the stuff which I installed/configured.
Can any one tell what has happened here and what exactly does docker commit does.

  • Difference between 'image' and 'build' within docker compose
  • Remove /bin/busybox at build time
  • Delete entire project from docker registry?
  • Why is /etc/hosts file empty in my docker container?
  • Docker Entrypoint script cannot get $DB_PORT_3306_TCP_ADDR environment variable
  • Dockerfile for multiple Docker containers
  • Simple Docker Concept
  • Docker for Mac and VMWare Fusion
  • WSO2 : how to download products in a Dockerfile?
  • Download Github build artifact (release) using wget/curl
  • Docker --env-file - executable file not found in $PATH
  • Docker-compose up directory error with Python3
  • Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.