Skip to content

name "foo" is already used by ID "" #3351

Closed

Description

@AkihiroSuda

Looks like the name store may accidentally get stuck in an improper state

$ sudo nerdctl run -it --rm --name=foo alpine
FATA[0000] name "foo" is already used by ID ""

$ sudo nerdctl rm -f foo
ERRO[0000] 1 errors:
no such container: foo

$ sudo nerdctl run -it --rm --name=foo alpine 
FATA[0000] name "foo" is already used by ID ""

Probably a recent regression in the main branch.

Workaround: sudo rm /var/lib/nerdctl/1935db59/names/default/foo

Activity

  1. added
    bug
    on Aug 23, 2024
  2. apostasie commented on Aug 23, 2024

    @apostasie
    Contributor

    Likely #2992

    This is definitely (still) happening when restarting containers is involved.
    It might be time to consider pulling the plug on the namestore...

  3. apostasie commented on Aug 23, 2024

    @apostasie
    Contributor

    I have #3357 for a specific case of this - just not sure this is the same.

    lmk if you have a repro for yours here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions