4 ms·
TIL of `docker commit`. What is the use case for this command? Quick debugging or something, to share with a coworker?
by cannonpalms 1y ago
TIL of `docker commit`. What is the use case for this command? Quick debugging or something, to share with a coworker?
- mystifyingpoi 1y agoSame as snapshotting a vm, or as an interactive version of "docker build". But rarely useful, since most workflows don't really need statefulness.
- macNchz 1y agoIt seems like their whole platform depends on it though… to my read they’re providing their users with cloud devcontainers to connect to from their local VS Code, then deploying to production by snapshotting the container with docker commit. Those containers have SSH enabled to the internet, which is where all of the auth logs came from that wound up baked into the images.