浏览代码

[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 8 年之前
父节点
当前提交
cd48633329
共有 1 个文件被更改,包括 1 次插入1 次删除
  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
 
 ```bash
-$ docker inspect --format='{{.Container.Spec.Image}}' $INSTANCE_ID
+$ docker inspect --format='{{.Config.Image}}' $INSTANCE_ID
 ```
 
 ### List all port bindings