containerd / nerdctl

contaiNERD CTL - Docker-compatible CLI for containerd, with support for Compose, Rootless, eStargz, OCIcrypt, IPFS, ...

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.