mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-24 00:42:08 +02:00

* pages*: remove = from GNU-style long options * 7z: readd needed = * 7za: add missing = * 7zr: fix argument and option separation * astyle: readd missing = * aws-ecr: readd missing = * az-devops: readd missing = * csslint: readd missing = * cs-fetch: readd missing = * bzgrep: readd missing = * chromium: readd missing = * docker-commit: remove unnecessary = * docker-system: remove unnecessary = * docker-ps: remove unnecessary = * dockerd: remove unnecessary = * 7za: readd missing = * 7zr: readd missing = * chromium.de: readd missing = * chromium.de: readd missing = * bundletool: remove additional space Co-authored-by: Nicolas Kosinski <nicokosi@users.noreply.github.com> --------- Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com> Co-authored-by: Nicolas Kosinski <nicokosi@users.noreply.github.com>
966 B
966 B
docker commit
Create a new image from a container’s changes. More information: https://docs.docker.com/engine/reference/commandline/commit/.
- Create an image from a specific container:
docker commit {{container}} {{image}}:{{tag}}
- Apply a
CMD
Dockerfile instruction to the created image:
docker commit --change "CMD {{command}}" {{container}} {{image}}:{{tag}}
- Apply an
ENV
Dockerfile instruction to the created image:
docker commit --change "ENV {{name}}={{value}}" {{container}} {{image}}:{{tag}}
- Create an image with a specific author in the metadata:
docker commit --author "{{author}}" {{container}} {{image}}:{{tag}}
- Create an image with a specific comment in the metadata:
docker commit --message "{{comment}}" {{container}} {{image}}:{{tag}}
- Create an image without pausing the container during commit:
docker commit --pause {{false}} {{container}} {{image}}:{{tag}}
- Display help:
docker commit --help