Skip to main content

2 posts tagged with "devops"

View All Tags

Docker Commit or Dockerfile?

· 2 min read
Lucas Sovre
Software architect, Docker certified expert, cloud and devsecops .

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: