我想更改docker插件中的配置,我读到本手册,我使用这个命令:
docker plugin set glusterfs:latest Config.PropagatedMount=/opt/docker/data/427680.427680/volumes/
但是当我想更改此配置时出现此错误"PropagatedMount": "/var/lib/docker-volumes"
:
Error response from daemon: setting "PropagatedMount" not found in the plugin configuration
我的问题可能出在 JSON 格式上,但我找不到设置此设置的方法。
这是 docker 插件检查输出:
[
{
"Config": {
"Args": {
"Description": "",
"Name": "",
"Settable": null,
"Value": null
},
"Description": "GlusterFS plugin for Docker",
"DockerVersion": "18.03.0-ce",
"Documentation": "https://github.com/trajano/docker-volume-plugins/",
"Entrypoint": [
"/glusterfs-volume-plugin"
],
"Env": [
{
"Description": "",
"Name": "SERVERS",
"Settable": [
"value"
],
"Value": ""
}
],
"Interface": {
"Socket": "gfs.sock",
"Types": [
"docker.volumedriver/1.0"
]
},
"IpcHost": false,
"Linux": {
"AllowAllDevices": false,
"Capabilities": [
"CAP_SYS_ADMIN"
],
"Devices": [
{
"Description": "",
"Name": "",
"Path": "/dev/fuse",
"Settable": null
}
]
},
"Mounts": null,
"Network": {
"Type": "host"
},
"PidHost": false,
"PropagatedMount": "/var/lib/docker-volumes",
"User": {},
"WorkDir": "",
"rootfs": {
"diff_ids": [
"sha256:9e8240f5b99231266ccb3260422fa333d6f72b3d7f6c77042d775ffc0e89b9ba"
],
"type": "layers"
}
},
"Enabled": false,
"Id": "1401d85f492bdaa6be658068fed13362f1507224e0ccf349d5e3a1e47c570f9b",
"Name": "glusterfs:latest",
"PluginReference": "docker.io/trajano/glusterfs-volume-plugin:latest",
"Settings": {
"Args": [],
"Devices": [
{
"Description": "",
"Name": "",
"Path": "/dev/fuse",
"Settable": null
}
],
"Env": [
"SERVERS=gluster-01,gluster-02,gluster-03"
],
"Mounts": []
}
}
]
您知道如何更改 docker 插件设置吗?