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.

  • PostgreSQL docker container on Widnows
  • Slow connection to mysql running in docker
  • How to .bashrc for root in Docker
  • How do you register a Postgres container host on docker-compose up?
  • Selenium Test Execution in Docker with UI
  • docker exec command doesn't return after completing execution
  • Docker/nginx [windows10] - change page on linked folder and show changes directly in the browser
  • How to convert a Dockerfile to a docker compose image?
  • Microservices with Flask [closed]
  • Apache Marathon/Docker Swarm: containers keep repeating
  • Error starting node with forever in docker container
  • How to check nvidia-docker version?
  • Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.