Volume code may be racy
apostasie opened this issue · comments
Description
While poking // tests, I did hit this:
level=fatal msg="mkdir /home/dmp.linux/.local/share/nerdctl/1935db59/volumes/nerdctl-test/nerdctl-testvolumeremove: file exists"
We should have a look at volume creation code and figure out if it is locking properly or if the test for existence can be raced out.
Steps to reproduce the issue
na
Describe the results you received and expected
na
What version of nerdctl are you using?
1.7.6
Are you using a variant of nerdctl? (e.g., Rancher Desktop)
None
Host information
No response
Create is just fine - code looks good. The error is misleading though, and also the behavior is not the same as Docker.
Will fix.