docker commit

Create a new image from a container’s changes. More information: https://docs.docker.com/reference/cli/docker/container/commit/.

docker commit {{container}} {{image}}:{{tag}}

docker commit {{[-c|--change]}} "CMD {{command}}" {{container}} {{image}}:{{tag}}

docker commit {{[-c|--change]}} "ENV {{name}}={{value}}" {{container}} {{image}}:{{tag}}

docker commit {{[-a|--author]}} "{{author}}" {{container}} {{image}}:{{tag}}

docker commit {{[-m|--message]}} "{{comment}}" {{container}} {{image}}:{{tag}}

docker commit {{[-p|--pause]}} {{false}} {{container}} {{image}}:{{tag}}

docker commit --help