Skip to content

Avoid stripping characters in volume names#3073

Merged
milas merged 1 commit intodocker:mainfrom
loicleyendecker:main
Dec 2, 2022
Merged

Avoid stripping characters in volume names#3073
milas merged 1 commit intodocker:mainfrom
loicleyendecker:main

Conversation

@loicleyendecker
Copy link
Copy Markdown
Contributor

When a volume name ends in "r", "o", or "w", it currently gets stripped which results in a mount created on the host with an incorrect name. The fix simply consists in not using the rstrip method but manually checking for ":rw" and ":ro" at the end of the string.

Signed-off-by: Loïc Leyendecker loic.leyendecker@gmail.com

Signed-off-by: Loïc Leyendecker <loic.leyendecker@gmail.com>
Copy link
Copy Markdown
Contributor

@milas milas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR! Nice find 🙃

@milas milas added this to the 6.x-next milestone Dec 1, 2022
@milas milas self-assigned this Dec 1, 2022
@milas milas added the kind/bug label Dec 1, 2022
@milas milas merged commit 82cf559 into docker:main Dec 2, 2022
@milas milas removed this from the 6.x-next milestone Sep 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants