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

Mounted volume can be deleted #971

Closed
click2cloud-lamda opened this issue Apr 8, 2022 · 1 comment · Fixed by #974
Closed

Mounted volume can be deleted #971

click2cloud-lamda opened this issue Apr 8, 2022 · 1 comment · Fixed by #974
Labels
bug Something isn't working

Comments

@click2cloud-lamda
Copy link
Contributor

Issue

In Docker, when we try to delete a volume mounted to a container, it throws the error "volume is in use". In nerdctl, even if the volume is mounted to the container, it can be deleted.

First I mount the volume "testVolume" to the container.

D:\GolandProjects\github.com\nerdctl\cmd\nerdctl>nerdctl run -it -v testVolume:C:\src mcr.microsoft.com/windows/nanoserver:20H2 cmd
Microsoft Windows [Version 10.0.19042.1586]
(c) 2019 Microsoft Corporation. All rights reserved.

C:\Windows\system32>

Then when I delete the volume, it gets deleted.

D:\GolandProjects\github.com\nerdctl\cmd\nerdctl>nerdctl volume rm testVolume
testVolume
@AkihiroSuda AkihiroSuda added the platform/Windows/Non-WSL2 Microsoft Windows (non-WSL2) label Apr 8, 2022
@click2cloud-lamda
Copy link
Contributor Author

@AkihiroSuda Im facing this issue on linux as well.

@AkihiroSuda AkihiroSuda added bug Something isn't working and removed platform/Windows/Non-WSL2 Microsoft Windows (non-WSL2) labels Apr 11, 2022
click2cloud-lamda added a commit to Click2Cloud/nerdctl that referenced this issue Apr 11, 2022
Signed-off-by: Raymond Mathew <raymond.mathew@click2cloud.net>
click2cloud-lamda added a commit to Click2Cloud/nerdctl that referenced this issue Apr 11, 2022
Signed-off-by: Raymond Mathew <raymond.mathew@click2cloud.net>
click2cloud-lamda added a commit to Click2Cloud/nerdctl that referenced this issue Apr 11, 2022
Signed-off-by: Raymond Mathew <raymond.mathew@click2cloud.net>
click2cloud-lamda added a commit to Click2Cloud/nerdctl that referenced this issue Apr 12, 2022
Signed-off-by: Raymond Mathew <raymond.mathew@click2cloud.net>
click2cloud-lamda added a commit to Click2Cloud/nerdctl that referenced this issue Apr 12, 2022
Signed-off-by: Raymond Mathew <raymond.mathew@click2cloud.net>
click2cloud-lamda added a commit to Click2Cloud/nerdctl that referenced this issue Apr 12, 2022
Signed-off-by: Raymond Mathew <raymond.mathew@click2cloud.net>
click2cloud-lamda added a commit to Click2Cloud/nerdctl that referenced this issue Apr 13, 2022
Signed-off-by: Raymond Mathew <raymond.mathew@click2cloud.net>
click2cloud-lamda added a commit to Click2Cloud/nerdctl that referenced this issue Apr 13, 2022
Signed-off-by: Raymond Mathew <raymond.mathew@click2cloud.net>
click2cloud-lamda added a commit to Click2Cloud/nerdctl that referenced this issue Apr 13, 2022
Signed-off-by: Raymond Mathew <raymond.mathew@click2cloud.net>
click2cloud-lamda added a commit to Click2Cloud/nerdctl that referenced this issue Apr 14, 2022
Signed-off-by: Raymond Mathew <raymond.mathew@click2cloud.net>
AkihiroSuda added a commit that referenced this issue Apr 15, 2022
Added fixes for issue #971(`Mounted volume can be deleted`)
@AkihiroSuda AkihiroSuda linked a pull request Apr 19, 2022 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants