Skip to content

Added volume bind option SELinux label :z :Z#9073

Merged
ndeloof merged 4 commits intodocker:v2from
tymonx:feature/volume-bind-option-selinux
Jan 3, 2022
Merged

Added volume bind option SELinux label :z :Z#9073
ndeloof merged 4 commits intodocker:v2from
tymonx:feature/volume-bind-option-selinux

Conversation

@tymonx
Copy link
Contributor

@tymonx tymonx commented Jan 1, 2022

What I did

Added unsupported volume bind option SELinux label :z and :Z in v2.

It is a regression compared to v1 written in Python.

The v2 uses the compose-spec/compose-go to parse Compose YAML
specification files but there was missing support for volume bind option
SELinux label :z and :Z in parser. It is fixed in:

References:

Related issue

It fixes #9072

(not mandatory) A picture of a cute animal, if possible in relation with what you did

image

Added unsupported volume bind option SELinux label `:z` and `:Z` in v2.

It is a regression compared to v1 written in Python.

The v2 uses the compose-spec/compose-go to parse Compose YAML
specification files but there was missing support for volume bind option
SELinux label `:z` and `:Z` in parser. It is fixed in:

- compose-spec/compose-go#213

It fixes docker#9072

References:

- https://docs.docker.com/storage/bind-mounts/#configure-the-selinux-label

Signed-off-by: Tymoteusz Blazejczyk <tymoteusz.blazejczyk@tymonx.com>
@tymonx
Copy link
Contributor Author

tymonx commented Jan 1, 2022

Waiting for review compose-spec/compose-go#213 to drop the replace statement in the go.mod file

tymonx added 2 commits January 1, 2022 16:47
Changes were merged. Updated the `replace` directive in the `go.mod`
file to the latest official package.

Signed-off-by: Tymoteusz Blazejczyk <tymoteusz.blazejczyk@tymonx.com>
Signed-off-by: Tymoteusz Blazejczyk <tymoteusz.blazejczyk@tymonx.com>
@tymonx tymonx changed the title [WIP]: Added volume bind option SELinux label :z :Z Added volume bind option SELinux label :z :Z Jan 1, 2022
@tymonx
Copy link
Contributor Author

tymonx commented Jan 1, 2022

compose-spec/compose-go#213 was merged 😄

Added unit tests for all uses cases.

Signed-off-by: Tymoteusz Blazejczyk <tymoteusz.blazejczyk@tymonx.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Unsupported volume bind option SELinux label :z and :Z in v2

2 participants