mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-26 01:52:49 +00:00
Update cheatsheets
This commit is contained in:
@@ -8,10 +8,6 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
> Return low-level information on Docker objects.
|
||||
> More information: <https://docs.docker.com/reference/cli/docker/inspect/>.
|
||||
|
||||
- Display help:
|
||||
|
||||
`docker inspect`
|
||||
|
||||
- Display information about a container, image, or volume using a name or ID:
|
||||
|
||||
`docker inspect {{container|image|ID}}`
|
||||
@@ -35,3 +31,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
- Display all port bindings:
|
||||
|
||||
`docker inspect {{[-f|--format]}} '\{\{range $p, $conf := .NetworkSettings.Ports\}\} \{\{$p\}\} -> \{\{(index $conf 0).HostPort\}\} \{\{end\}\}' {{container}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
`docker inspect`
|
||||
|
||||
Reference in New Issue
Block a user