Explorar el Código

[docs] Fix incorrect `docker inspect` example

Fixed incorrect `docker inspect` example in docs.
Verify by running the old and new commands.

fixes #31900

Signed-off-by: David Xia <dxia@spotify.com>
David Xia hace 8 años
padre
commit
cd48633329
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      docs/reference/commandline/inspect.md

+ 1 - 1
docs/reference/commandline/inspect.md

@@ -63,7 +63,7 @@ $ docker inspect --format='{{.LogPath}}' $INSTANCE_ID
 ### Get an instance's image name
 ### Get an instance's image name
 
 
 ```bash
 ```bash
-$ docker inspect --format='{{.Container.Spec.Image}}' $INSTANCE_ID
+$ docker inspect --format='{{.Config.Image}}' $INSTANCE_ID
 ```
 ```
 
 
 ### List all port bindings
 ### List all port bindings