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.

  • Docker Is there a possibility to restart CMD instruction?
  • Docker: wget for https does not work
  • Docker running nginx plus jar
  • Where are Docker images stored on the host machine?
  • Electron inside Docker with X11 Forwarding - No Protocol Specified
  • How to use STOPSIGNAL instruction within Docker?
  • Docker -v issue
  • Docker workflow during development
  • docker-compose does not launch
  • pre-cache node_modules in Docker container
  • How do you run an Openshift Docker container as something besides root?
  • Monitoring MySQL running within a docker container?
  • Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.