Skip to content

Latest commit

History

History
86 lines (58 loc) · 2.43 KB

File metadata and controls

86 lines (58 loc) · 2.43 KB

plugin upgrade

Upgrade an existing plugin

Options

NameTypeDefaultDescription
--grant-all-permissionsboolGrant all permissions necessary to run the plugin
--skip-remote-checkboolDo not check if specified remote plugin matches existing plugin image

Description

Upgrades an existing plugin to the specified remote plugin image. If no remote is specified, Docker will re-pull the current image and use the updated version. All existing references to the plugin will continue to work. The plugin must be disabled before running the upgrade.

Examples

The following example installs vieus/sshfs plugin, uses it to create and use a volume, then upgrades the plugin.

$ docker plugin install vieux/sshfs DEBUG=1Plugin "vieux/sshfs:next" is requesting the following privileges: - network: [host] - device: [/dev/fuse] - capabilities: [CAP_SYS_ADMIN]Do you grant the above permissions? [y/N] yvieux/sshfs:next
$ docker volume create -d vieux/sshfs:next -o sshcmd=root@1.2.3.4:/tmp/shared -o password=XXX sshvolumesshvolume
$ docker run -it -v sshvolume:/data alpine sh -c "touch /data/hello"
$ docker plugin disable -f vieux/sshfs:nextviex/sshfs:next
# Here docker volume ls doesn't show 'sshfsvolume', since the plugin is disabled
$ docker volume lsDRIVER VOLUME NAME
$ docker plugin upgrade vieux/sshfs:next vieux/sshfs:nextPlugin "vieux/sshfs:next" is requesting the following privileges: - network: [host] - device: [/dev/fuse] - capabilities: [CAP_SYS_ADMIN]Do you grant the above permissions? [y/N] yUpgrade plugin vieux/sshfs:next to vieux/sshfs:next
$ docker plugin enable vieux/sshfs:nextviex/sshfs:next
$ docker volume lsDRIVER VOLUME NAMEviuex/sshfs:next sshvolume
$ docker run -it -v sshvolume:/data alpine sh -c "ls /data"hello

Related commands