Update cheatsheets

This commit is contained in:
ivuorinen
2025-04-23 00:19:06 +00:00
parent 8ba6f7fc9e
commit 94c28849c9
382 changed files with 1183 additions and 1056 deletions

View File

@@ -14,23 +14,23 @@ source: https://github.com/tldr-pages/tldr.git
- Apply a `CMD` Dockerfile instruction to the created image:
`docker commit --change "CMD {{command}}" {{container}} {{image}}:{{tag}}`
`docker commit {{[-c|--change]}} "CMD {{command}}" {{container}} {{image}}:{{tag}}`
- Apply an `ENV` Dockerfile instruction to the created image:
`docker commit --change "ENV {{name}}={{value}}" {{container}} {{image}}:{{tag}}`
`docker commit {{[-c|--change]}} "ENV {{name}}={{value}}" {{container}} {{image}}:{{tag}}`
- Create an image with a specific author in the metadata:
`docker commit --author "{{author}}" {{container}} {{image}}:{{tag}}`
`docker commit {{[-a|--author]}} "{{author}}" {{container}} {{image}}:{{tag}}`
- Create an image with a specific comment in the metadata:
`docker commit --message "{{comment}}" {{container}} {{image}}:{{tag}}`
`docker commit {{[-m|--message]}} "{{comment}}" {{container}} {{image}}:{{tag}}`
- Create an image without pausing the container during commit:
`docker commit --pause {{false}} {{container}} {{image}}:{{tag}}`
`docker commit {{[-p|--pause]}} {{false}} {{container}} {{image}}:{{tag}}`
- Display help: