docker plugin inspect
docker plugin inspect
docker plugin inspect 명령은 하나 이상의 플러그인에 대한 상세 정보를 표시합니다.
출처: 문서
본문
플러그인에 대한 정보를 반환하는 명령어예요. 기본적으로 이 명령은 모든 결과를 JSON 배열로 렌더링해요.
| 구분 | 내용 |
|---|---|
| Description | 하나 이상의 플러그인에 대한 상세 정보 표시 |
| Usage | docker plugin inspect [OPTIONS] PLUGIN [PLUGIN...] |
옵션 (Options)
| 옵션 | 기본값 | 설명 |
|---|---|---|
-f, --format |
사용자 정의 템플릿으로 출력 형식: 'json': JSON 형식 출력 'TEMPLATE': 주어진 Go 템플릿으로 출력. 템플릿 출력 형식에 대한 자세한 내용은 https://docs.docker.com/go/formatting/ 참조 |
예시 (Examples)
플러그인 검사
다음 예는 tiborvass/sample-volume-plugin 플러그인을 검사해요:
$ docker plugin inspect tiborvass/sample-volume-plugin:latest
출력은 JSON 형식이에요 (아래 출력은 가독성을 위해 정리된 것):
{
"Id": "8c74c978c434745c3ade82f1bc0acf38d04990eaf494fa507c16d9f1daa99c21",
"Name": "tiborvass/sample-volume-plugin:latest",
"PluginReference": "tiborvas/sample-volume-plugin:latest",
"Enabled": true,
"Config": {
"Mounts": [
{
"Name": "",
"Description": "",
"Settable": null,
"Source": "/data",
"Destination": "/data",
"Type": "bind",
"Options": [
"shared",
"rbind"
]
},
{
"Name": "",
"Description": "",
"Settable": null,
"Source": null,
"Destination": "/foobar",
"Type": "tmpfs",
"Options": null
}
],
"Env": [
"DEBUG=1"
],
"Args": null,
"Devices": null
},
"Manifest": {
"ManifestVersion": "v0",
"Description": "A test plugin for Docker",
"Documentation": "/engine/extend/plugins/",
"Interface": {
"Types": [
"docker.volumedriver/1.0"
],
"Socket": "plugins.sock"
},
"Entrypoint": [
"plugin-sample-volume-plugin",
"/data"
],
"Workdir": "",
"User": {
},
"Network": {
"Type": "host"
},
"Capabilities": null,
"Mounts": [
{
"Name": "",
"Description": "",
"Settable": null,
"Source": "/data",
"Destination": "/data",
"Type": "bind",
"Options": [
"shared",
"rbind"
]
},
{
"Name": "",
"Description": "",
"Settable": null,
"Source": null,
"Destination": "/foobar",
"Type": "tmpfs",
"Options": null
}
],
"Devices": [
{
"Name": "device",
"Description": "a host device to mount",
"Settable": null,
"Path": "/dev/cpu_dma_latency"
}
],
"Env": [
{
"Name": "DEBUG",
"Description": "If set, prints debug messages",
"Settable": null,
"Value": "1"
}
],
"Args": {
"Name": "args",
"Description": "command line arguments",
"Settable": null,
"Value": [
]
}
}
}
출력 형식 (--format)
$ docker plugin inspect -f '{{.Id}}' tiborvass/sample-volume-plugin:latest
8c74c978c434745c3ade82f1bc0acf38d04990eaf494fa507c16d9f1daa99c21