Below are the steps by which Docker Commit work:-
Step-1: Pull latest Ubuntu image.
Step-2: Create a container to work within the latest Ubuntu image.
Step-3: Update apt.
Step-4: Once the update is done, you have to push the container to Docker Hub & develop your container.
If you want to learn more then you can join the Docker Training course. I would suggest you watch the following Docker video tutorial. .