Verify the installed plugin
In this step, you will learn how to verify the status of installed Docker plugins. You can check which plugins are installed, their version, and whether they are enabled or disabled.
To list all installed plugins, you use the docker plugin ls
command.
docker plugin ls
This command will display a table with information about each installed plugin, including its ID, Name, Description, Enabled status, and Version.
You should see the three plugins we installed in the previous steps: rexray/s3fs
, vieux/sshfs
, and containernetworking/cni
.
ID NAME DESCRIPTION ENABLED VERSION
a1b2c3d4e5f6 rexray/s3fs:latest REX-Ray S3FS Plugin true latest
g7h8i9j0k1l2 vieux/sshfs:latest The `sshfs` plugin for Docker. true latest
m3n4o5p6q7r8 containernetworking/cni:latest CNI network plugin for Docker false latest
Notice that rexray/s3fs
and vieux/sshfs
are listed as ENABLED
(true), while containernetworking/cni
is listed as ENABLED
(false), as we installed it with the --disable
flag.
You can also inspect a specific plugin for more detailed information using the docker plugin inspect
command followed by the plugin name or ID.
Let's inspect the containernetworking/cni
plugin:
docker plugin inspect containernetworking/cni
This command will output a detailed JSON object containing all the configuration and status information for the plugin. You can examine this output to confirm the plugin's settings and state. Look for the "Enabled": false
line in the output to confirm it is disabled.
[
{
"Id": "m3n4o5p6q7r8",
"Name": "containernetworking/cni:latest",
"Enabled": false,
"Settings": {
"Args": [],
"Env": [],
"Devices": [],
"Mounts": []
},
"PluginReference": "docker.io/containernetworking/cni:latest",
"Config": {
"DockerVersion": "20.10.21",
"Description": "CNI network plugin for Docker",
"Documentation": "https://github.com/containernetworking/cni",
"Interface": {
"Types": ["docker.networkdriver/1.0"],
"Socket": "cni.sock"
},
"Entrypoint": ["/docker-cni-plugin"],
"PropagatedMount": "/opt/cni",
"WorkDir": "",
"User": {},
"Args": {
"Name": "",
"Description": ""
},
"Linux": {
"Capabilities": ["CAP_SYS_ADMIN"],
"AllowAllDevices": false,
"Devices": [
{
"Name": "fuse",
"Path": "/dev/fuse"
}
]
},
"Rootfs": {
"Type": "tar",
"DiffIds": ["sha256:..."]
}
}
}
]
This step concludes the process of installing and verifying Docker plugins. You have learned how to install plugins with default settings, with specific configuration parameters, and how to install them without enabling them immediately. You also know how to list and inspect installed plugins to verify their status.