3 ms·
That’s useful, thanks. I’m confused why they haven’t implemented a COMMIT instruction. It’s so common to have people chain “command && command && command && c
by JimDabell 5y ago
That’s useful, thanks.
I’m confused why they haven’t implemented a COMMIT instruction.
It’s so common to have people chain “command && command && command && command” to group things into a single layer. Surely it would be better to put something like “AUTOCOMMIT off” at the start of the Dockerfile and then “COMMIT” whenever you want to explicitly close the current layer. It seems much simpler than everybody hacking around it with shell side-effects.
- franga2000 5y agoThere's an issue on Github about that and it's been open for about as long as Docker has existed. Looks like they just don't care.
- bborud 5y ago...or at least some syntax that represents layers like (block) scopes do in a programming language so it is visually easier to see what is going on.