Skip to content

[Bug]: After reinstalling using brew, container start fails. #561

Open

Description

@PunkFleet

I have done the following

  • I have searched the existing issues
  • If possible, I've reproduced the issue using the 'main' branch of this project

Steps to reproduce

#476

@jglogan I tried to reproduce the issue, but I'm unsure how to fully describe the problem, so I've copied all my command operations.

koala@MacBook-Pro ~ % uninstall-container.sh -d
Password:
Removed `container` tool and helpers
Removing `container` user data
koala@MacBook-Pro ~ % brew remove container
==> Uninstalling Cask container
==> Uninstalling packages with `sudo` (which may request your password)...
==> Purging files for version 0.4.1 of Cask container
koala@MacBook-Pro ~ % container --version
zsh: command not found: container

At this point, I have completely uninstalled container. After downloading and successfully installing the 0.4.1 package, I proceeded to attempt reproducing the issue:

koala@MacBook-Pro ~ % container --version   
container CLI version 0.4.1 (build: release, commit: 4ac18b5)
koala@MacBook-Pro ~ % container system start
Verifying apiserver is running...
No default kernel configured.
Install the recommended default kernel from [https://github.com/kata-containers/kata-containers/releases/download/3.17.0/kata-static-3.17.0-arm64.tar.xz]? [Y/n]: y
Installing kernel...
koala@MacBook-Pro ~ % container iamges
Error: failed to find plugin named container-iamges
Usage: container [--debug] <subcommand>
  See 'container --help' for more information.
koala@MacBook-Pro ~ % container iamges ls
Error: failed to find plugin named container-iamges
Usage: container [--debug] <subcommand>
  See 'container --help' for more information.
koala@MacBook-Pro ~ % container images ls
NAME  TAG  DIGEST
koala@MacBook-Pro ~ % container images list
NAME  TAG  DIGEST
koala@MacBook-Pro ~ % brew install --casks container
==> Downloading https://formulae.brew.sh/api/cask.jws.json
==> Downloading https://github.com/apple/container/releases/download/0.4.1/container-0.4.1-installer-signed.pkg
Already downloaded: /Users/koala/Library/Caches/Homebrew/downloads/9a6d34905ad7b16cedcc4d3268afd6d4d6042da528f56bb466e8fb9a410288d9--container-0.4.1-installer-signed.pkg
==> Installing Cask container
==> Running installer for container with `sudo` (which may request your password)...
Password:
installer: Package name is container-0.4.1-installer-signed
installer: Upgrading at base path /
installer: The upgrade was successful.
🍺  container was successfully installed!
Warning: You are using macOS 26.
We do not provide support for this pre-release version.

This is a Tier 2 configuration:
  https://docs.brew.sh/Support-Tiers#tier-2
You can report Tier 2 unrelated issues to Homebrew/* repositories!
Read the above document instead before opening any issues or PRs.

==> No outdated dependents to upgrade!
koala@MacBook-Pro ~ % container iamges ls
Error: failed to find plugin named container-iamges
Usage: container [--debug] <subcommand>
  See 'container --help' for more information.
koala@MacBook-Pro ~ % container images ls
NAME  TAG  DIGEST
koala@MacBook-Pro ~ % container create --name openwrt --arch amd64 -c 4 -m 8G ubuntu:24.04
openwrt                                                                                        
koala@MacBook-Pro ~ % container list -a
ID       IMAGE                           OS     ARCH   STATE    ADDR
openwrt  docker.io/library/ubuntu:24.04  linux  amd64  stopped  
koala@MacBook-Pro ~ % container start openwrt
openwrt                  
koala@MacBook-Pro ~ % container list -a      
ID       IMAGE                           OS     ARCH   STATE    ADDR
openwrt  docker.io/library/ubuntu:24.04  linux  amd64  stopped  
koala@MacBook-Pro ~ % container logs --boot openwrt
[    0.130066] random: crng init done
[    0.131969] brd: module loaded
[    0.132814] loop: module loaded
[    0.132935] virtio_blk virtio2: 1/0/0 default/read/poll queues
[    0.133173] virtio_blk virtio2: [vda] 1048576 512-byte logical blocks (537 MB/512 MiB)
[    0.133500] virtio_blk virtio3: 1/0/0 default/read/poll queues
[    0.133725] virtio_blk virtio3: [vdb] 1073741824 512-byte logical blocks (550 GB/512 GiB)
[    0.134638] VFIO - User Level meta-driver version: 0.3
[    0.134972] rtc-pl031 20050000.pl031: registered as rtc0
[    0.135019] rtc-pl031 20050000.pl031: setting system clock to 2025-08-30T02:46:44 UTC (1756522004)
[    0.136389] xt_time: kernel timezone is -0000
[    0.136492] IPVS: Registered protocols (TCP, UDP, SCTP, AH, ESP)
[    0.136535] IPVS: Connection hash table configured (size=4096, memory=32Kbytes)
[    0.136654] IPVS: ipvs loaded.
[    0.136687] IPVS: [rr] scheduler registered.
[    0.136728] IPVS: [wrr] scheduler registered.
[    0.136791] IPVS: [lc] scheduler registered.
[    0.136813] IPVS: [wlc] scheduler registered.
[    0.136852] IPVS: [fo] scheduler registered.
[    0.136893] IPVS: [ovf] scheduler registered.
[    0.136912] IPVS: [lblc] scheduler registered.
[    0.136951] IPVS: [lblcr] scheduler registered.
[    0.136990] IPVS: [dh] scheduler registered.
[    0.137032] IPVS: [sh] scheduler registered.
[    0.137054] IPVS: [sed] scheduler registered.
[    0.137096] IPVS: [nq] scheduler registered.
[    0.137138] IPVS: [sip] pe registered.
[    0.137232] Initializing XFRM netlink socket
[    0.137286] NET: Registered PF_INET6 protocol family
[    0.137637] Segment Routing with IPv6
[    0.137681] In-situ OAM (IOAM) with IPv6
[    0.137745] NET: Registered PF_PACKET protocol family
[    0.137797] 9pnet: Installing 9P2000 support
[    0.137914] NET: Registered PF_VSOCK protocol family
[    0.139233] registered taskstats version 1
[    0.141271] alg: No test for fips(ansi_cprng) (fips_ansi_cprng)
[    0.142254] clk: Disabling unused clocks
[    0.143495] EXT4-fs (vda): mounted filesystem 27a8ddcf-f805-4a14-949b-31b12025f930 ro without journal. Quota mode: disabled.
[    0.143628] VFS: Mounted root (ext4 filesystem) readonly on device 254:0.
[    0.143874] devtmpfs: mounted
[    0.144054] Freeing unused kernel memory: 1856K
[    0.144162] Run /sbin/vminitd as init process
2025-08-30T02:46:44+0000 info vminitd : [vminitd] checking for shim var FOREGROUND=nil
2025-08-30T02:46:44+0000 info vminitd : [vminitd] running vminitd under pid1
2025-08-30T02:46:44+0000 info vminitd : [vminitd] checking for shim var FOREGROUND=Optional("1")
2025-08-30T02:46:44+0000 info vminitd : [vminitd] vminitd booting...
2025-08-30T02:46:44+0000 info vminitd : [vminitd] serve vminitd api
2025-08-30T02:46:44+0000 debug vminitd : [vminitd] starting process supervisor
2025-08-30T02:46:44+0000 debug vminitd : port=1024 [vminitd] booting grpc server on vsock
2025-08-30T02:46:44+0000 info vminitd : port=1024 [vminitd] grpc api serving on vsock
2025-08-30T02:46:44+0000 debug vminitd : destination=/run/rosetta source=rosetta type=virtiofs [vminitd] mount
2025-08-30T02:46:44+0000 debug vminitd : request=Containerization.Com_Apple_Containerization_Sandbox_V3_SetupEmulatorRequest:
binary_path: "/run/rosetta/rosetta"
name: "x86_64"
type: "M"
magic: "\\x7fELF\\x02\\x01\\x01\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x02\\x00\\x3e\\x00"
mask: "\\xff\\xff\\xff\\xff\\xff\\xfe\\xfe\\x00\\xff\\xff\\xff\\xff\\xff\\xff\\xff\\xff\\xfe\\xff\\xff\\xff"
flags: "CF"
 [vminitd] setupEmulator
2025-08-30T02:46:44+0000 debug vminitd : interface=lo up=true [vminitd] ip-link-set
2025-08-30T02:46:44+0000 debug vminitd : key=PATH value=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin [vminitd] setenv
2025-08-30T02:46:44+0000 debug vminitd : destination=/sys source=sysfs type=sysfs [vminitd] mount
2025-08-30T02:46:44+0000 debug vminitd : destination=/tmp source=tmpfs type=tmpfs [vminitd] mount
2025-08-30T02:46:44+0000 debug vminitd : destination=/dev/pts source=devpts type=devpts [vminitd] mount
2025-08-30T02:46:44+0000 debug vminitd : destination=/sys/fs/cgroup source=none type=cgroup2 [vminitd] mount
2025-08-30T02:46:44+0000 debug vminitd : dataSize=39 mode=0 path=/sys/fs/cgroup/cgroup.subtree_control [vminitd] writeFile
2025-08-30T02:46:44+0000 debug vminitd : destination=/run/container/openwrt/rootfs source=/dev/vdb type=ext4 [vminitd] mount
[    0.297750] EXT4-fs (vdb): mounted filesystem 2bae5dc2-a921-45f9-8389-399c5fd71477 r/w without journal. Quota mode: disabled.
2025-08-30T02:46:44+0000 debug vminitd : addr=192.168.64.2/24 interface=eth0 [vminitd] ip-addr-add
2025-08-30T02:46:44+0000 debug vminitd : interface=eth0 up=true [vminitd] ip-link-set
2025-08-30T02:46:44+0000 debug vminitd : gateway=192.168.64.1 interface=eth0 [vminitd] ip-route-add-default
2025-08-30T02:46:44+0000 debug vminitd : domain= location=/run/container/openwrt/rootfs nameservers=["192.168.64.1"] [vminitd] configure-dns
2025-08-30T02:46:44+0000 debug vminitd : [vminitd] writing to path /run/container/openwrt/rootfs/etc/resolv.conf nameserver 192.168.64.1

2025-08-30T02:46:44+0000 debug vminitd : path=/run/container/openwrt/rootfs/etc/resolv.conf [vminitd] wrote resolver configuration
2025-08-30T02:46:44+0000 debug vminitd : location=/run/container/openwrt/rootfs [vminitd] configureHosts
2025-08-30T02:46:44+0000 debug vminitd : path=/run/container/openwrt/rootfs/etc/hosts [vminitd] wrote /etc/hosts configuration
2025-08-30T02:46:44+0000 debug vminitd : containerID=openwrt id=openwrt stderr=Port: 268435457 stdin=Port: 0 stdout=Port: 268435456 [vminitd] createProcess
2025-08-30T02:46:44+0000 debug vminitd : [vminitd] created bundle with spec Spec(version: "", hooks: nil, process: Optional(ContainerizationOCI.Process(cwd: "/", env: ["PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin", "HOME=/root"], consoleSize: nil, selinuxLabel: "", noNewPrivileges: false, commandLine: "", oomScoreAdj: nil, capabilities: nil, apparmorProfile: "", user: ContainerizationOCI.User(uid: 0, gid: 0, umask: nil, additionalGids: [0], username: ""), rlimits: [], args: ["/bin/bash"], terminal: false)), hostname: "openwrt", domainname: "", mounts: [ContainerizationOCI.Mount(type: "proc", source: "proc", destination: "/proc", options: ["nosuid", "noexec", "nodev"], uidMappings: [], gidMappings: []), ContainerizationOCI.Mount(type: "sysfs", source: "sysfs", destination: "/sys", options: ["nosuid", "noexec", "nodev"], uidMappings: [], gidMappings: []), ContainerizationOCI.Mount(type: "devtmpfs", source: "none", destination: "/dev", options: ["nosuid", "mode=755"], uidMappings: [], gidMappings: []), ContainerizationOCI.Mount(type: "mqueue", source: "mqueue", destination: "/dev/mqueue", options: ["nosuid", "noexec", "nodev"], uidMappings: [], gidMappings: []), ContainerizationOCI.Mount(type: "tmpfs", source: "tmpfs", destination: "/dev/shm", options: ["nosuid", "noexec", "nodev", "mode=1777", "size=65536k"], uidMappings: [], gidMappings: []), ContainerizationOCI.Mount(type: "cgroup2", source: "none", destination: "/sys/fs/cgroup", options: ["nosuid", "noexec", "nodev"], uidMappings: [], gidMappings: []), ContainerizationOCI.Mount(type: "devpts", source: "devpts", destination: "/dev/pts", options: ["nosuid", "noexec", "gid=5", "mode=620", "ptmxmode=666"], uidMappings: [], gidMappings: [])], annotations: nil, root: Optional(ContainerizationOCI.Root(path: "/run/container/openwrt/rootfs", readonly: false)), linux: Optional(ContainerizationOCI.Linux(uidMappings: [], gidMappings: [], sysctl: Optional([:]), resources: Optional(ContainerizationOCI.LinuxResources(devices: [], memory: nil, cpu: nil, pids: nil, blockIO: nil, hugepageLimits: [], network: nil, rdma: nil, unified: Optional([:]))), cgroupsPath: "/container/openwrt", namespaces: [], devices: [], seccomp: nil, rootfsPropagation: "", maskedPaths: [], readonlyPaths: [], mountLabel: "", personality: nil)))
2025-08-30T02:46:44+0000 info vminitd : mountpoint=/sys/fs/cgroup path=/sys/fs/cgroup/container/openwrt [vminitd] creating cgroup manager
2025-08-30T02:46:44+0000 info vminitd : id=openwrt [vminitd] starting io
2025-08-30T02:46:44+0000 info vminitd : id=openwrt [vminitd] setting up relay for StandardIO stdout
2025-08-30T02:46:44+0000 info vminitd : id=openwrt [vminitd] setting up relay for StandardIO stderr
2025-08-30T02:46:44+0000 info vminitd : [vminitd] created managed init process
2025-08-30T02:46:44+0000 debug vminitd : containerID=openwrt id=openwrt [vminitd] startProcess
2025-08-30T02:46:44+0000 debug vminitd : [vminitd] in supervisor lock to start process
2025-08-30T02:46:44+0000 info vminitd : id=openwrt [vminitd] starting managed process
2025-08-30T02:46:44+0000 info vminitd : id=89 [vminitd] got back pid data
2025-08-30T02:46:44+0000 debug vminitd : mountpoint=/sys/fs/cgroup path=/sys/fs/cgroup/container/openwrt [vminitd] adding new proc to cgroup
2025-08-30T02:46:44+0000 debug vminitd : [vminitd] received SIGCHLD, reaping processes
2025-08-30T02:46:44+0000 debug vminitd : [vminitd] starting to wait4 processes
2025-08-30T02:46:44+0000 debug vminitd : [vminitd] finished wait4 of 1 processes
2025-08-30T02:46:44+0000 debug vminitd : exits=[88: 0] processes=1 [vminitd] checking for exit of managed process
2025-08-30T02:46:44+0000 info vminitd : id=openwrt pid=89 [vminitd] sending pid acknowledgement
2025-08-30T02:46:44+0000 info vminitd : id=openwrt pid=89 [vminitd] started managed process
2025-08-30T02:46:44+0000 debug vminitd : [vminitd] out of supervisor lock to start process
2025-08-30T02:46:44+0000 debug vminitd : containerID=openwrt id=openwrt [vminitd] waitProcess
2025-08-30T02:46:44+0000 debug vminitd : id=openwrt [vminitd] received EPOLLHUP with no EPOLLIN
2025-08-30T02:46:44+0000 debug vminitd : id=openwrt [vminitd] received EPOLLHUP with no EPOLLIN
2025-08-30T02:46:44+0000 debug vminitd : [vminitd] received SIGCHLD, reaping processes
2025-08-30T02:46:44+0000 debug vminitd : [vminitd] starting to wait4 processes
2025-08-30T02:46:44+0000 debug vminitd : [vminitd] finished wait4 of 1 processes
2025-08-30T02:46:44+0000 debug vminitd : exits=[89: 0] processes=1 [vminitd] checking for exit of managed process
2025-08-30T02:46:44+0000 debug vminitd : count=0 pid=89 status=0 [vminitd] managed process exited
2025-08-30T02:46:44+0000 info vminitd : id=openwrt status=0 [vminitd] managed process exit
2025-08-30T02:46:44+0000 info vminitd : id=openwrt [vminitd] closing relay for StandardIO stdout
2025-08-30T02:46:44+0000 info vminitd : id=openwrt [vminitd] closing relay for StandardIO stderr
2025-08-30T02:46:44+0000 debug vminitd : id=openwrt [vminitd] 1 managed process waiters signaled
2025-08-30T02:46:44+0000 debug vminitd : pid=-1 signal=9 [vminitd] kill
2025-08-30T02:46:44+0000 debug vminitd : containerID=openwrt id=openwrt [vminitd] waitProcess
2025-08-30T02:46:44+0000 debug vminitd : flags=0 path=/run/container/openwrt/rootfs [vminitd] umount
[    0.557634] EXT4-fs (vdb): unmounting filesystem 2bae5dc2-a921-45f9-8389-399c5fd71477.
2025-08-30T02:46:44+0000 debug vminitd : containerID=openwrt id=openwrt [vminitd] deleteProcess
koala@MacBook-Pro ~ % container list -a            
ID       IMAGE                           OS     ARCH   STATE    ADDR
openwrt  docker.io/library/ubuntu:24.04  linux  amd64  stopped  
koala@MacBook-Pro ~ % container start openwrt      
openwrt                  
koala@MacBook-Pro ~ % container list -a            
ID       IMAGE                           OS     ARCH   STATE    ADDR
openwrt  docker.io/library/ubuntu:24.04  linux  amd64  stopped  

Current behavior

After using the container start command, the container fails to start.

Expected behavior

The container start command successfully runs a container.

Environment

- OS: Version 26.0 Beta (25A5346a)
- Xcode: 
- Container: container CLI version 0.4.1 (build: release, commit: 4ac18b5)

Relevant log output

Code of Conduct

  • I agree to follow this project's Code of Conduct

Activity

  1. added theissue type on Aug 30, 2025
  2. minsvip commented on Sep 2, 2025

    @minsvip

    It same to me.

  3. jglogan commented on Sep 2, 2025

    @jglogan
    Contributor

    Could you try running in one terminal:

    container system logs -f

    and then in another:

    container system stop
    container system start
    container create --name openwrt --arch amd64 -c 4 -m 8G ubuntu:24.04
    container start openwrt

    Then copy the system logs and upload them here.

  4. PunkFleet commented on Sep 3, 2025

    @PunkFleet
    Author

    Could you try running in one terminal:

    container system logs -f
    and then in another:

    container system stop
    container system start
    container create --name openwrt --arch amd64 -c 4 -m 8G ubuntu:24.04
    container start openwrt
    Then copy the system logs and upload them here.

    @jglogan lol, this method is awesome. I can view the entire activity log.

    I noticed it's an AMD64 image issue? 2025-09-03 17:06:04.702630+0800 0x3adf Error 0x0 1099 0 container-core-images: [com.apple.container:ImagesHelper] handler for snapshotGet threw error notFound: "image snapshot for docker.io/library/ubuntu:24.04 with platform linux/amd64"
    I lack knowledge in this area, but checking the image source seems to pull normally. https://hub.docker.com/_/ubuntu/tags?name=24

     container system logs -f
    Filtering the log data using "subsystem ==[cd] "com.apple.container""
    Timestamp                       Thread     Type        Activity             PID    TTL  
    2025-09-03 17:05:40.465427+0800 0x396e     Info        0x0                  1093   0    container-apiserver: [com.apple.container:APIServer] starting container-apiserver
    2025-09-03 17:05:40.465874+0800 0x396e     Info        0x0                  1093   0    container-apiserver: [com.apple.container:APIServer] configuring XPC server
    2025-09-03 17:05:40.465916+0800 0x396e     Info        0x0                  1093   0    container-apiserver: [com.apple.container:APIServer] initializing plugin loader [installRoot=/usr/local/]
    2025-09-03 17:05:40.465992+0800 0x396e     Info        0x0                  1093   0    container-apiserver: [com.apple.container:APIServer] detecting user plugins directory [path=/usr/local/libexec/container-plugins]
    2025-09-03 17:05:40.466112+0800 0x396e     Info        0x0                  1093   0    container-apiserver: [com.apple.container:APIServer] discovered plugin directory [path=/usr/local/bin/plugins]
    2025-09-03 17:05:40.466131+0800 0x396e     Info        0x0                  1093   0    container-apiserver: [com.apple.container:APIServer] discovered plugin directory [path=/usr/local/libexec/container/plugins/]
    2025-09-03 17:05:40.468413+0800 0x396e     Info        0x0                  1093   0    container-apiserver: [com.apple.container:APIServer] Registering plugin [id=com.apple.container.container-core-images]
    2025-09-03 17:05:40.482428+0800 0x396e     Info        0x0                  1093   0    container-apiserver: [com.apple.container:APIServer] Registering plugin [id=com.apple.container.container-network-vmnet.default]
    2025-09-03 17:05:40.538072+0800 0x397c     Info        0x0                  1098   0    container-network-vmnet: [com.apple.container:NetworkVmnetHelper] starting container-network-vmnet [id=default]
    2025-09-03 17:05:40.538472+0800 0x397c     Info        0x0                  1098   0    container-network-vmnet: [com.apple.container:NetworkVmnetHelper] configuring XPC server [id=default]
    2025-09-03 17:05:40.538493+0800 0x397c     Info        0x0                  1098   0    container-network-vmnet: [com.apple.container:NetworkVmnetHelper] creating vmnet network [id=default]
    2025-09-03 17:05:40.538500+0800 0x397c     Info        0x0                  1098   0    container-network-vmnet: [com.apple.container:NetworkVmnetHelper] created vmnet network [id=default]
    2025-09-03 17:05:40.538637+0800 0x397c     Info        0x0                  1098   0    container-network-vmnet: [com.apple.container:NetworkVmnetHelper] starting vmnet network [mode=nat] [id=default]
    2025-09-03 17:05:40.546335+0800 0x397c     Info        0x0                  1098   0    container-network-vmnet: [com.apple.container:NetworkVmnetHelper] started vmnet network [cidr=192.168.64.0/24] [id=default] [mode=nat]
    2025-09-03 17:05:40.546423+0800 0x397c     Info        0x0                  1098   0    container-network-vmnet: [com.apple.container:NetworkVmnetHelper] starting XPC server [id=default]
    2025-09-03 17:05:40.547620+0800 0x396e     Info        0x0                  1093   0    container-apiserver: [com.apple.container:APIServer] network service: list
    2025-09-03 17:05:40.548046+0800 0x396e     Info        0x0                  1093   0    container-apiserver: [com.apple.container:APIServer] starting XPC server
    2025-09-03 17:05:40.548078+0800 0x3972     Info        0x0                  1093   0    container-apiserver: [com.apple.container:APIServer] starting DNS host query resolver [host=127.0.0.1] [port=2053]
    2025-09-03 17:05:40.591852+0800 0x398d     Info        0x0                  1099   0    container-core-images: [com.apple.container:ImagesHelper] starting container-core-images
    2025-09-03 17:05:40.592347+0800 0x398d     Info        0x0                  1099   0    container-core-images: [com.apple.container:ImagesHelper] configuring XPC server
    2025-09-03 17:05:40.592800+0800 0x398d     Info        0x0                  1099   0    container-core-images: [com.apple.container:ImagesHelper] starting XPC server
    2025-09-03 17:05:40.593210+0800 0x398e     Info        0x0                  1099   0    container-core-images: [com.apple.container:ImagesHelper] ImagesService: list()
    2025-09-03 17:05:40.599179+0800 0x398d     Info        0x0                  1099   0    container-core-images: [com.apple.container:ImagesHelper] ImagesService: getImageSnapshot(description:platform:) - description: ImageDescription(reference: "ghcr.io/apple/containerization/vminit:0.6.2", descriptor: ContainerizationOCI.Descriptor(mediaType: "application/vnd.oci.image.index.v1+json", digest: "sha256:65207e3ca1dbc33ff4cdad4016495663a2bdbfcc7b9c59780fd5b18e57057959", size: 306, urls: nil, annotations: nil, platform: nil)), platform: Platform(osVersion: nil, osFeatures: nil, variant: Optional("v8"), _rawOS: "linux", _rawArch: "arm64")
    2025-09-03 17:05:40.604390+0800 0x3970     Info        0x0                  1093   0    container-apiserver: [com.apple.container:APIServer] KernelService: getDefaultKernel(platform:) - platform: SystemPlatform(os: Containerization.SystemPlatform.OS.linux, architecture: Containerization.SystemPlatform.Architecture.arm64)
    2025-09-03 17:05:52.659499+0800 0x3ab5     Info        0x0                  1099   0    container-core-images: [com.apple.container:ImagesHelper] ImagesService: list()
    2025-09-03 17:05:52.665774+0800 0x3ab5     Info        0x0                  1099   0    container-core-images: [com.apple.container:ImagesHelper] ImagesService: pull(reference:platform:insecure:progressUpdate:) - ref: docker.io/library/ubuntu:24.04, platform: Optional(ContainerizationOCI.Platform(osVersion: nil, osFeatures: nil, variant: nil, _rawOS: "linux", _rawArch: "amd64")), insecure: false
    2025-09-03 17:06:04.700774+0800 0x3ab6     Info        0x0                  1099   0    container-core-images: [com.apple.container:ImagesHelper] ImagesService: getImageSnapshot(description:platform:) - description: ImageDescription(reference: "docker.io/library/ubuntu:24.04", descriptor: ContainerizationOCI.Descriptor(mediaType: "application/vnd.oci.image.index.v1+json", digest: "sha256:9cbed754112939e914291337b5e554b07ad7c392491dba6daf25eef1332a22e8", size: 6688, urls: nil, annotations: nil, platform: nil)), platform: Platform(osVersion: nil, osFeatures: nil, variant: nil, _rawOS: "linux", _rawArch: "amd64")
    2025-09-03 17:06:04.702630+0800 0x3adf     Error       0x0                  1099   0    container-core-images: [com.apple.container:ImagesHelper] handler for snapshotGet threw error notFound: "image snapshot for docker.io/library/ubuntu:24.04 with platform linux/amd64"
    2025-09-03 17:06:04.704278+0800 0x398d     Info        0x0                  1099   0    container-core-images: [com.apple.container:ImagesHelper] ImagesService: unpack(description:platform:progressUpdate:) - description: ImageDescription(reference: "docker.io/library/ubuntu:24.04", descriptor: ContainerizationOCI.Descriptor(mediaType: "application/vnd.oci.image.index.v1+json", digest: "sha256:9cbed754112939e914291337b5e554b07ad7c392491dba6daf25eef1332a22e8", size: 6688, urls: nil, annotations: nil, platform: nil)), platform: Optional(ContainerizationOCI.Platform(osVersion: nil, osFeatures: nil, variant: nil, _rawOS: "linux", _rawArch: "amd64"))
    2025-09-03 17:06:05.632328+0800 0x3adf     Info        0x0                  1099   0    container-core-images: [com.apple.container:ImagesHelper] ImagesService: getImageSnapshot(description:platform:) - description: ImageDescription(reference: "docker.io/library/ubuntu:24.04", descriptor: ContainerizationOCI.Descriptor(mediaType: "application/vnd.oci.image.index.v1+json", digest: "sha256:9cbed754112939e914291337b5e554b07ad7c392491dba6daf25eef1332a22e8", size: 6688, urls: nil, annotations: nil, platform: nil)), platform: Platform(osVersion: nil, osFeatures: nil, variant: nil, _rawOS: "linux", _rawArch: "amd64")
    2025-09-03 17:06:05.635164+0800 0x3bb1     Info        0x0                  1093   0    container-apiserver: [com.apple.container:APIServer] KernelService: getDefaultKernel(platform:) - platform: SystemPlatform(os: Containerization.SystemPlatform.OS.linux, architecture: Containerization.SystemPlatform.Architecture.arm64)
    2025-09-03 17:06:05.636282+0800 0x3ab5     Info        0x0                  1099   0    container-core-images: [com.apple.container:ImagesHelper] ImagesService: list()
    2025-09-03 17:06:05.641187+0800 0x3ab5     Info        0x0                  1099   0    container-core-images: [com.apple.container:ImagesHelper] ImagesService: getImageSnapshot(description:platform:) - description: ImageDescription(reference: "ghcr.io/apple/containerization/vminit:0.6.2", descriptor: ContainerizationOCI.Descriptor(mediaType: "application/vnd.oci.image.index.v1+json", digest: "sha256:65207e3ca1dbc33ff4cdad4016495663a2bdbfcc7b9c59780fd5b18e57057959", size: 306, urls: nil, annotations: nil, platform: nil)), platform: Platform(osVersion: nil, osFeatures: nil, variant: Optional("v8"), _rawOS: "linux", _rawArch: "arm64")
    2025-09-03 17:06:05.645024+0800 0x3bb1     Info        0x0                  1093   0    container-apiserver: [com.apple.container:APIServer] network service: list
    2025-09-03 17:06:05.652182+0800 0x3ab6     Info        0x0                  1099   0    container-core-images: [com.apple.container:ImagesHelper] ImagesService: list()
    2025-09-03 17:06:05.659580+0800 0x3adf     Info        0x0                  1099   0    container-core-images: [com.apple.container:ImagesHelper] ImagesService: getImageSnapshot(description:platform:) - description: ImageDescription(reference: "ghcr.io/apple/containerization/vminit:0.6.2", descriptor: ContainerizationOCI.Descriptor(mediaType: "application/vnd.oci.image.index.v1+json", digest: "sha256:65207e3ca1dbc33ff4cdad4016495663a2bdbfcc7b9c59780fd5b18e57057959", size: 306, urls: nil, annotations: nil, platform: nil)), platform: Platform(osVersion: nil, osFeatures: nil, variant: nil, _rawOS: "linux", _rawArch: "arm64")
    2025-09-03 17:06:05.664604+0800 0x3ab6     Info        0x0                  1099   0    container-core-images: [com.apple.container:ImagesHelper] ImagesService: getImageSnapshot(description:platform:) - description: ImageDescription(reference: "docker.io/library/ubuntu:24.04", descriptor: ContainerizationOCI.Descriptor(mediaType: "application/vnd.oci.image.index.v1+json", digest: "sha256:9cbed754112939e914291337b5e554b07ad7c392491dba6daf25eef1332a22e8", size: 6688, urls: nil, annotations: nil, platform: nil)), platform: Platform(osVersion: nil, osFeatures: nil, variant: nil, _rawOS: "linux", _rawArch: "amd64")
    2025-09-03 17:06:05.666737+0800 0x3a30     Info        0x0                  1093   0    container-apiserver: [com.apple.container:APIServer] Registering plugin [id=com.apple.container.container-runtime-linux.openwrt]
    2025-09-03 17:06:05.787419+0800 0x3bc1     Info        0x0                  1108   0    container-runtime-linux: [com.apple.container:RuntimeLinuxHelper] starting container-runtime-linux [uuid=openwrt]
    2025-09-03 17:06:05.794196+0800 0x3bc1     Info        0x0                  1108   0    container-runtime-linux: [com.apple.container:RuntimeLinuxHelper] configuring XPC server [uuid=openwrt]
    2025-09-03 17:06:05.796018+0800 0x3bc1     Info        0x0                  1108   0    container-runtime-linux: [com.apple.container:RuntimeLinuxHelper] starting XPC server [uuid=openwrt]
    2025-09-03 17:06:17.770827+0800 0x3caa     Info        0x0                  1108   0    container-runtime-linux: [com.apple.container:RuntimeLinuxHelper] `bootstrap` xpc handler [uuid=openwrt]
    2025-09-03 17:06:17.781780+0800 0x3cab     Info        0x0                  1098   0    container-network-vmnet: [com.apple.container:NetworkVmnetHelper] allocated attachment [address=192.168.64.2/24] [hostname=openwrt] [id=default] [gateway=192.168.64.1]
    2025-09-03 17:06:17.782643+0800 0x3bc1     Info        0x0                  1108   0    container-runtime-linux: [com.apple.container:RuntimeLinuxHelper] creating NATNetworkInterface with network reference [uuid=openwrt]
    2025-09-03 17:06:18.417152+0800 0x3bc1     Info        0x0                  1108   0    container-runtime-linux: [com.apple.container:RuntimeLinuxHelper] `start` xpc handler [uuid=openwrt]
    2025-09-03 17:06:18.529850+0800 0x3bb1     Info        0x0                  1093   0    container-apiserver: [com.apple.container:APIServer] Handling container openwrt Start.
    2025-09-03 17:06:18.530202+0800 0x3caa     Info        0x0                  1108   0    container-runtime-linux: [com.apple.container:RuntimeLinuxHelper] `state` xpc handler [uuid=openwrt]
    2025-09-03 17:06:18.550911+0800 0x3cdb     Info        0x0                  1108   0    container-runtime-linux: [com.apple.container:RuntimeLinuxHelper] init process exited with: 0 [uuid=openwrt]
    2025-09-03 17:06:18.557093+0800 0x3cdb     Error       0x0                  1108   0    container-runtime-linux: [com.apple.container:RuntimeLinuxHelper] process deletion [error=internal error (13): unknown error processing request] [uuid=openwrt] [id=openwrt]
    2025-09-03 17:06:18.607656+0800 0x3cda     Info        0x0                  1108   0    container-runtime-linux: [com.apple.container:RuntimeLinuxHelper] closing forwarders [uuid=openwrt]
    2025-09-03 17:06:18.607667+0800 0x3cda     Info        0x0                  1108   0    container-runtime-linux: [com.apple.container:RuntimeLinuxHelper] closed forwarders [uuid=openwrt]
    2025-09-03 17:06:18.607928+0800 0x3cab     Info        0x0                  1098   0    container-network-vmnet: [com.apple.container:NetworkVmnetHelper] released attachments [id=default] [hostname=openwrt]
    2025-09-03 17:06:18.608223+0800 0x3bb1     Info        0x0                  1093   0    container-apiserver: [com.apple.container:APIServer] Handling container openwrt exit. Code 0
    
    
    
  5. self-assigned this
    on Sep 8, 2025
  6. jglogan commented on Sep 9, 2025

    @jglogan
    Contributor

    The "image snapshot" is most likely not important. That it's logged as an error is misleading. I filed #589 for it.

    It looks like your container process is exiting with status 0 almost as soon as the container starts. There's an error message right after that as well, but I'm not sure whether that's the real problem as your container is shutting down before it:

    2025-09-03 17:06:18.550911+0800 0x3cdb     Info        0x0                  1108   0    container-runtime-linux: [com.apple.container:RuntimeLinuxHelper] init process exited with: 0 [uuid=openwrt]
    2025-09-03 17:06:18.557093+0800 0x3cdb     Error       0x0                  1108   0    container-runtime-linux: [com.apple.container:RuntimeLinuxHelper] process deletion [error=internal error (13): unknown error processing request] [uuid=openwrt] [id=openwrt]

    Are you building this container image from a Dockerfile, or are you getting it from a registry somewhere?

  7. PunkFleet commented on Sep 9, 2025

    @PunkFleet
    Author

    The "image snapshot" is most likely not important. That it's logged as an error is misleading. I filed #589 for it.

    It looks like your container process is exiting with status 0 almost as soon as the container starts. There's an error message right after that as well, but I'm not sure whether that's the real problem as your container is shutting down before it:

    2025-09-03 17:06:18.550911+0800 0x3cdb Info 0x0 1108 0 container-runtime-linux: [com.apple.container:RuntimeLinuxHelper] init process exited with: 0 [uuid=openwrt]
    2025-09-03 17:06:18.557093+0800 0x3cdb Error 0x0 1108 0 container-runtime-linux: [com.apple.container:RuntimeLinuxHelper] process deletion [error=internal error (13): unknown error processing request] [uuid=openwrt] [id=openwrt]
    Are you building this container image from a Dockerfile, or are you getting it from a registry somewhere?

    I am using standard commands. container create --name openwrt -c 4 -m 8G ubuntu:24.04 The source of this image is:

    container image inspect ubuntu:24.04
    [{"index":{"size":6688,"mediaType":"application\/vnd.oci.image.index.v1+json","digest":"sha256:9cbed754112939e914291337b5e554b07ad7c392491dba6daf25eef1332a22e8"},"variants":[{"size":29725782,"config":{"architecture":"amd64","os":"linux","rootfs":{"type":"layers","diff_ids":["sha256:9d592720ced4a7a4ddf16adef8a126e4c8c49f22114de769343320b37674321e"]},"history":[{"created":"2025-08-19T14:36:58.563415611Z","empty_layer":true,"created_by":"\/bin\/sh -c #(nop)  ARG RELEASE"},{"created":"2025-08-19T14:36:58.588740408Z","empty_layer":true,"created_by":"\/bin\/sh -c #(nop)  ARG LAUNCHPAD_BUILD_ARCH"},{"created":"2025-08-19T14:36:58.62539552Z","empty_layer":true,"created_by":"\/bin\/sh -c #(nop)  LABEL org.opencontainers.image.ref.name=ubuntu"},{"created":"2025-08-19T14:36:58.656408981Z","empty_layer":true,"created_by":"\/bin\/sh -c #(nop)  LABEL org.opencontainers.image.version=24.04"},{"created":"2025-08-19T14:37:00.843597813Z","created_by":"\/bin\/sh -c #(nop) ADD file:e67907c77897d27192314f6c4fa0112b6f7dce3e127500516535cc50fe736c92 in \/ "},{"created":"2025-08-19T14:37:01.23577114Z","empty_layer":true,"created_by":"\/bin\/sh -c #(nop)  CMD [\"\/bin\/bash\"]"}],"created":"2025-08-19T14:37:01.23577114Z","config":{"Labels":{"org.opencontainers.image.version":"24.04","org.opencontainers.image.ref.name":"ubuntu"},"Cmd":["\/bin\/bash"],"User":"","Env":["PATH=\/usr\/local\/sbin:\/usr\/local\/bin:\/usr\/sbin:\/usr\/bin:\/sbin:\/bin"],"WorkingDir":""}},"platform":{"os":"linux","architecture":"amd64"}}],"name":"docker.io\/library\/ubuntu:24.04"}]
    
    
  8. jglogan commented on Sep 9, 2025

    @jglogan
    Contributor

    I just noticed something; could you clarify something about the reproductions steps after the point where you fully uninstalled container?

    It looks like you said you installed 0.4.1 from the package, and I see you running container ls and container image ls.

    Then it looks like you install the homebrew package for container as well? Is this really the case? I have no idea offhand what's going to happen with that sort of setup.

  9. PunkFleet commented on Sep 29, 2025

    @PunkFleet
    Author

    I just noticed something; could you clarify something about the reproductions steps after the point where you fully uninstalled container?

    Sorry for the late reply. After completely uninstalling the brew package and the installer package, I first installed it via the installer package and then launched it. Immediately after that, I installed it from brew. That's how it went.

    It looks like you said you installed 0.4.1 from the package, and I see you running container ls and container image ls.

    Then it looks like you install the homebrew package for container as well? Is this really the case? I have no idea offhand what's going to happen with that sort of setup.

    The earliest issue occurred in version 0.3.0. To be honest, this happened because I forgot to install it using the installer package. On macOS, I usually install things via brew, so that's how the problem arose. When I tried reinstalling via brew, it proceeded to install directly (overwrite?)

    Perhaps we could add a duplicate installation detection method? To check if the container already exists on the target machine?

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions