✨ Add support for read_only
field of mounts and binds
#89
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Decision Record
Counterpart of SaaShup/netbox-docker-plugin#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)