Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid stripping characters in volume names #3073

Merged
merged 1 commit into from
Dec 2, 2022
Merged

Avoid stripping characters in volume names #3073

merged 1 commit into from
Dec 2, 2022

Conversation

loicleyendecker
Copy link
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
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.

None yet

2 participants