By default, we used to create mounts (from volumes or binds) with "read write" permissions. Now, we use the new field read_only from the Mount and Bind models of the Netbox plugin.
Changes
[x] :sparkles: Set read_only field on Mount and Bind in Netbox using the HostConfig.Mounts[].ReadOnly property
[x] :sparkles: Set the HostConfig.Mounts[].ReadOnly property based on the read_only field of Mount and Bind models
[x] :fire: Remove HostConfig.Mounts[].RW field (does not exist in Docker Engine API)
[x] :fire: Remove HostConfig.Mounts[].Mode field (does not exist in Docker Engine API)
Decision Record
Counterpart of https://github.com/SaaShup/netbox-docker-plugin/pull/118
By default, we used to create mounts (from volumes or binds) with "read write" permissions. Now, we use the new field
read_only
from theMount
andBind
models of the Netbox plugin.Changes
read_only
field onMount
andBind
in Netbox using theHostConfig.Mounts[].ReadOnly
propertyHostConfig.Mounts[].ReadOnly
property based on theread_only
field ofMount
andBind
modelsHostConfig.Mounts[].RW
field (does not exist in Docker Engine API)HostConfig.Mounts[].Mode
field (does not exist in Docker Engine API)