Skip to content

Docker 29 in Lima shows containers that it cannot delete #4496

@rfay

Description

@rfay

Description

In the latest versions of Lima our DDEV test runners are ending up with containers that cannot be deleted. (macOS 26.2, ARM64, VZ)

Right now on tb-macos-arm64-7 we have a ddev ssh-agent container that cannot be deleted, and this has happened a number of times lately. The only fix I know of is to completely destroy and recreate the lima instance.

testbot@tb-macos-arm64-7 workspace % docker ps -a
CONTAINER ID   IMAGE                                                       COMMAND                 CREATED             STATUS                    PORTS     NAMES
497e249b4d59   ddev/ddev-ssh-agent:20251222_stasadev_tzdata_legacy-built   "/entry.sh ssh-agent"   About an hour ago   Created                             dbcc431b5cef_ddev-ssh-agent
dbcc431b5cef   43a94aa3f90f                                                "/entry.sh ssh-agent"   2 days ago          Exited (137) 2 days ago
% docker rm -f $(docker ps -aq)
497e249b4d59
Error response from daemon: No such container: dbcc431b5cef
% docker rm -f $(docker ps -aq)
497e249b4d59
Error response from daemon: No such container: dbcc431b5cef

Here's how we build lima test instances: https://docs.ddev.com/en/stable/developers/buildkite-testmachine-setup/#additional-lima-macos-setup

We've been using that technique for years without trouble; I think this only popped up in v2.0.2 perhaps.

These lima instances have docker engine 29.1.3

The container remains after docker system prune --volumes --force

Inside limactl ssh lima-vz there is nothing in /var/lib/docker/containers

broken-limactl-info.json.txt

failure context

limactl factory-reset lima-vz does solve the problem, as we'd expect. It's easier than what I've done before.

Metadata

Metadata

Assignees

No one assigned

    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