Docker Commit or Dockerfile?
· 2 min read
Have you heard about the second command that allows you to create Docker images? 🐳
docker commit [container name] [image name]:[tag]
This command creates an image by taking a kind of "snapshot" of the targeted container. However, I wondered what the differences were compared to docker build (aside from the Dockerfile).
I took the time to study a very simple case and examine the differences it produces: