You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My issue is about the documentation content or website
Type of issue
Other
Description
Hi, I would like to suggest including information on why we should use dockerfiles instead of building images from containers. I have found articles suggesting that we can build images by:
Running a container from a stable base image.
Making some changes (such as installing packages inside the container)
Commit the changed container as a new image that can be used for further development.
While this method is powerful, it can easily create confusion among developers about how this image was built and the underlying layers. Thus, the best practice would be to test changes to an image in a container but eventually change the base dockerfile to build a new image, as it is easier to maintain and understand.
Is this a docs issue?
Type of issue
Other
Description
Hi, I would like to suggest including information on why we should use dockerfiles instead of building images from containers. I have found articles suggesting that we can build images by:
While this method is powerful, it can easily create confusion among developers about how this image was built and the underlying layers. Thus, the best practice would be to test changes to an image in a container but eventually change the base dockerfile to build a new image, as it is easier to maintain and understand.
Location
https://docs.docker.com/develop/dev-best-practices/
Suggestion
No response
The text was updated successfully, but these errors were encountered: