Skip to content

incorrect restart=always restart logic #5153

Closed
containerd/containerd
#13993

Description

@ningmingxiao

Description

Currently, when running a container with nerdctl run -d --restart=always busybox sh -c "top",
and then performing nerdctl stop on it, containerd still restarts the container after a few seconds.
This is inconsistent with Docker behavior and not the desired outcome.

Steps to reproduce the issue

1.nerdctl run -d --restart=always --name=test busybox sh -c "top"
2. nerdctl stop test
3.after several seconds this container will be restarted.

Describe the results you received and expected

nerdtcl have same behavior with Docker.

What version of nerdctl are you using?

any

Are you using a variant of nerdctl? (e.g., Rancher Desktop)

None

Host information

No response

Activity

  1. changed the title [-]incorrect restart=always restart logic- #13993[/-] [+]incorrect restart=always restart logic[/+] on Aug 20, 2026
  2. added
    bug
    and removed
    kind/unconfirmed-bug-claim
    on Sep 1, 2026
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