docker plugin
PluginCLI
create
create(plugin_name, plugin_data_directory, compress=False)
Create a plugin from a rootfs and configuration.
PARAMETER | DESCRIPTION |
---|---|
plugin_name |
The name you want to give to your plugin
TYPE:
|
plugin_data_directory |
Must contain config.json and rootfs directory.
TYPE:
|
compress |
Compress the context using gzip
TYPE:
|
disable
disable(plugin, force=False)
Disable a plugin
PARAMETER | DESCRIPTION |
---|---|
plugin |
The plugin to disable
TYPE:
|
force |
Force the disable of an active plugin
TYPE:
|
enable
enable(plugin, timeout=None)
Enable a plugin
PARAMETER | DESCRIPTION |
---|---|
plugin |
The plugin to enable
TYPE:
|
timeout |
HTTP client timeout (in seconds) (default 30)
TYPE:
|
inspect
inspect(x)
Returns a python_on_whales.Plugin
object from a string
(name or id of the plugin)
PARAMETER | DESCRIPTION |
---|---|
x |
One id or hostname or a list of name or ids
TYPE:
|
Returns
One or a list of `python_on_whales.Plugin`
install
install(plugin_name, configuration={}, alias=None, disable=False, disable_content_trust=True)
Installs a Docker plugin
Warning: --grant-all-permissions
is enabled, which means the program won't
stop to ask you to grant the permissions.
PARAMETER | DESCRIPTION |
---|---|
plugin_name |
The name of the plugin you want to install
TYPE:
|
configuration |
A
TYPE:
|
alias |
Local name for plugin
TYPE:
|
disable |
Do not enable the plugin on install
TYPE:
|
disable_content_trust |
Skip image verification (default
TYPE:
|
Returns
A `python_on_whales.Plugin`.
list
list()
Returns a List[python_on_whales.Plugin
that are installed on the daemon.
push
push(plugin, disable_content_trust=True)
Push a plugin to a registry.
PARAMETER | DESCRIPTION |
---|---|
plugin |
The plugin to push
TYPE:
|
disable_content_trust |
Skip image signing (default
TYPE:
|
remove
remove(x, force=False)
Removes one or more plugins
PARAMETER | DESCRIPTION |
---|---|
x |
One or more plugins to remove.
TYPE:
|
force |
Force the removal of this plugin.
TYPE:
|
set
set(plugin, configuration)
Change the settings for a plugin
PARAMETER | DESCRIPTION |
---|---|
plugin |
The plugin that needs its settings changed
TYPE:
|
configuration |
The new configuration options.
TYPE:
|
upgrade
upgrade(plugin, remote=None, disable_content_trust=True, skip_remote_check=False)
Upgrade a plugin
Warning: --grant-all-permissions
is enabled, which means the program won't
stop to ask you to grant the permissions.
PARAMETER | DESCRIPTION |
---|---|
plugin |
The plugin to upgrade
TYPE:
|
remote |
The remote to fetch the upgrade from
TYPE:
|
disable_content_trust |
Skip image verification (default
TYPE:
|
skip_remote_check |
Do not check if specified remote plugin matches existing plugin image
TYPE:
|