Skip to content

urunc containers fall back to Created after containerd restart #599

@sidneychang

Description

@sidneychang

I observed that a running urunc container loses its running task state after restarting containerd.

Before restarting containerd, the container is shown as running:

root@sev:~/zxd/urunc-per-container# nerdctl -n moby ps -a
CONTAINER ID    IMAGE                                                         COMMAND                   CREATED           STATUS    PORTS    NAMES
fd0b779c7add    harbor.nbfc.io/nubificus/urunc/nginx-qemu-linux-raw:latest    "/urunit /usr/sbin/n…"    16 seconds ago    Up                 urunc-check-1

After restarting containerd:

root@sev:~/zxd/urunc-per-container# systemctl restart containerd

The same container is reported as Created instead of Up:

root@sev:~/zxd/urunc-per-container# nerdctl -n moby ps -a
CONTAINER ID    IMAGE                                                         COMMAND                   CREATED           STATUS     PORTS    NAMES
fd0b779c7add    harbor.nbfc.io/nubificus/urunc/nginx-qemu-linux-raw:latest    "/urunit /usr/sbin/n…"    28 seconds ago    Created             urunc-check-1

In addition, after the container falls back to Created, trying to use nerdctl to stop or kill it through nerdctl does not terminate the existing shim process.

Metadata

Metadata

Assignees

No one assigned

    Labels

    CoreRelated to urunc's internalsK8s/ToolsRelated to container/cloud native tools, orchestrators

    Type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions