Skip to content

[Bug]: ip address exhaustion (?) leave containers in broken, un-removable state #150

Description

@apostasie

What operating system are you running this on?

None

Container

  • I am running this inside a container

What happened?

nerdctl rm -f $(nerdctl ps -aq)
ERRO[0000] 1 errors:
failed to load container networking options from specs: unexpected end of JSON input

Relevant log output

[
    {
        "Id": "2d3a1d580515af69c07a0986d4e08634800244de5c0f1005bc058b5c7402818e",
        "Created": "2025-02-12T00:50:07.438197824Z",
        "Path": "sleep",
        "Args": [
            "Inf"
        ],
        "State": {
            "Status": "",
            "Running": false,
            "Paused": false,
            "Restarting": false,
            "Pid": 0,
            "ExitCode": 0,
            "Error": "failed to load container networking options from specs: unexpected end of JSON input",
            "StartedAt": "",
            "FinishedAt": ""
        },
        "Image": "docker.io/library/debian:latest",
        "ResolvConfPath": "/home/dmp.linux/.local/share/nerdctl/1935db59/containers/default/2d3a1d580515af69c07a0986d4e08634800244de5c0f1005bc058b5c7402818e/resolv.conf",
        "HostnamePath": "/home/dmp.linux/.local/share/nerdctl/1935db59/containers/default/2d3a1d580515af69c07a0986d4e08634800244de5c0f1005bc058b5c7402818e/hostname",
        "LogPath": "",
        "Name": "",
        "RestartCount": 0,
        "Driver": "overlayfs",
        "Platform": "linux",
        "AppArmorProfile": "",
        "Mounts": [
            {
                "Type": "bind",
                "Source": "/home/dmp.linux/.local/share/nerdctl/1935db59/containers/default/2d3a1d580515af69c07a0986d4e08634800244de5c0f1005bc058b5c7402818e/resolv.conf",
                "Destination": "/etc/resolv.conf",
                "Mode": "bind,rprivate",
                "RW": true,
                "Propagation": "rprivate"
            },
            {
                "Type": "bind",
                "Source": "/home/dmp.linux/.local/share/nerdctl/1935db59/etchosts/default/2d3a1d580515af69c07a0986d4e08634800244de5c0f1005bc058b5c7402818e/hosts",
                "Destination": "/etc/hosts",
                "Mode": "bind,rprivate",
                "RW": true,
                "Propagation": "rprivate"
            },
            {
                "Type": "bind",
                "Source": "/home/dmp.linux/.local/share/nerdctl/1935db59/containers/default/2d3a1d580515af69c07a0986d4e08634800244de5c0f1005bc058b5c7402818e/hostname",
                "Destination": "/etc/hostname",
                "Mode": "bind,rprivate",
                "RW": true,
                "Propagation": "rprivate"
            }
        ],
        "Config": {
            "Hostname": "2d3a1d580515",
            "AttachStdin": false,
            "Labels": {
                "io.containerd.image.config.stop-signal": "SIGTERM",
                "lepton/error": "failed to load container networking options from specs: unexpected end of JSON input",
                "nerdctl/auto-remove": "false",
                "nerdctl/extraHosts": "[]",
                "nerdctl/hostname": "2d3a1d580515",
                "nerdctl/ipc": "{\"mode\":\"private\"}",
                "nerdctl/log-uri": "binary:///usr/local/bin/nerdctl?_NERDCTL_INTERNAL_LOGGING=%2Fhome%2Fdmp.linux%2F.local%2Fshare%2Fnerdctl%2F1935db59",
                "nerdctl/name": "debian-2d3a1",
                "nerdctl/namespace": "default",
                "nerdctl/networks": "[\"bridge\"]",
                "nerdctl/platform": "linux/arm64/v8",
                "nerdctl/state-dir": "/home/dmp.linux/.local/share/nerdctl/1935db59/containers/default/2d3a1d580515af69c07a0986d4e08634800244de5c0f1005bc058b5c7402818e"
            }
        },
        "NetworkSettings": null
    }
]

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions