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

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

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

    , 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Add copy buttons to all
     blocks\n(function() {\n function addCopyButtons() {\n document.querySelectorAll('pre code').forEach(function(codeBlock) {\n if (codeBlock.parentElement.hasAttribute('data-copy-added')) return;\n codeBlock.parentElement.setAttribute('data-copy-added', 'true');\n \n var btn = document.createElement('button');\n btn.textContent = 'Copy';\n btn.style.cssText = 'position:absolute;top:4px;right:4px;padding:2px 8px;font-size:11px;background:#4ecdc4;border:none;border-radius:4px;color:#1a1a2e;cursor:pointer;opacity:0.7;transition:opacity 0.2s;';\n btn.onmouseover = function() { this.style.opacity = '1'; };\n btn.onmouseout = function() { this.style.opacity = '0.7'; };\n btn.onclick = function() {\n navigator.clipboard.writeText(codeBlock.textContent).then(function() {\n btn.textContent = 'Copied!';\n setTimeout(function() { btn.textContent = 'Copy'; }, 1500);\n });\n };\n codeBlock.parentElement.style.position = 'relative';\n codeBlock.parentElement.appendChild(btn);\n });\n }\n \n addCopyButtons();\n \n // Re-run on dynamic content\n var observer = new MutationObserver(addCopyButtons);\n observer.observe(document.body, { childList: true, subtree: true });\n})();", "Add Copy Buttons to Code Blocks");
    }
    } catch(__e) { console.warn('[Userscript:Add Copy Buttons to Code Blocks]', __e); }
    })();
    (function(){
    try {
    var __m = "github.com";
    var __re = new RegExp('^' + "github\\.com" + '
    
    Skip to content

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

    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

    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

      , 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Force GitHub README to respect dark mode\n(function() {\n var style = document.createElement('style');\n style.textContent = '\n .markdown-body {\n color-scheme: dark light;\n }\n .markdown-body pre { background: #161b22 !important; }\n .markdown-body code { background: rgba(110, 118, 129, 0.4) !important; }\n .markdown-body table th, .markdown-body table td { border-color: #30363d !important; }\n .markdown-body img { background: #0d1117; }\n .markdown-body blockquote { border-left-color: #8b949e; }\n .markdown-body hr { border-color: #30363d; }\n ';\n document.head.appendChild(style);\n})();", "GitHub Dark Mode README Fix"); } } catch(__e) { console.warn('[Userscript:GitHub Dark Mode README Fix]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + '
      Skip to content

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

      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

      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

        , 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Highlight search terms from Google/DuckDuckGo/Bing referrer\n(function() {\n var ref = document.referrer;\n var terms = [];\n \n if (ref.includes('google.com') || ref.includes('duckduckgo.com') || ref.includes('bing.com')) {\n var url = new URL(ref);\n var q = url.searchParams.get('q') || url.searchParams.get('p');\n if (q) {\n terms = q.split(/\\s+/).filter(function(t) { return t.length > 2; });\n }\n }\n \n if (terms.length === 0) return;\n \n var style = document.createElement('style');\n style.textContent = '.userscript-highlight { background: #fbbf24; color: #1a1a2e; padding: 1px 3px; border-radius: 2px; }';\n document.head.appendChild(style);\n \n function highlight(node) {\n if (node.nodeType === 3) { // text node\n var text = node.textContent;\n var found = false;\n terms.forEach(function(term) {\n var regex = new RegExp('(' + term.replace(/[.*+?^${}()|[\\]\\\\]/g, '\\\\') + ')', 'gi');\n if (regex.test(text)) {\n found = true;\n var frag = document.createDocumentFragment();\n var parts = text.split(regex);\n parts.forEach(function(part, i) {\n if (i % 2 === 0) {\n frag.appendChild(document.createTextNode(part));\n } else {\n var span = document.createElement('span');\n span.className = 'userscript-highlight';\n span.textContent = part;\n frag.appendChild(span);\n }\n });\n node.parentNode.replaceChild(frag, node);\n }\n });\n } else if (node.nodeType === 1 && node.childNodes) { // element\n var skipTags = ['SCRIPT', 'STYLE', 'NOSCRIPT', 'TEXTAREA', 'INPUT', 'SELECT'];\n if (!skipTags.includes(node.tagName)) {\n Array.from(node.childNodes).forEach(highlight);\n }\n }\n }\n \n highlight(document.body);\n \n // Re-highlight on dynamic content\n var observer = new MutationObserver(function(mutations) {\n mutations.forEach(function(m) {\n m.addedNodes.forEach(function(node) {\n if (node.nodeType === 1 || node.nodeType === 3) highlight(node);\n });\n });\n });\n observer.observe(document.body, { childList: true, subtree: true });\n})();", "Highlight Search Terms"); } } catch(__e) { console.warn('[Userscript:Highlight Search Terms]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + '
        Skip to content

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

        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

        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

          , 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Strip utm_, fbclid, gclid, etc. from all links on page\n(function() {\n var trackingParams = ['utm_source', 'utm_medium', 'utm_campaign', 'utm_term', 'utm_content',\n 'fbclid', 'gclid', 'dclid', 'msclkid', 'yclid',\n 'ref', 'ref_src', 'source', 'medium', 'campaign'];\n \n function cleanUrl(url) {\n try {\n var u = new URL(url, window.location.origin);\n var changed = false;\n trackingParams.forEach(function(p) {\n if (u.searchParams.has(p)) {\n u.searchParams.delete(p);\n changed = true;\n }\n });\n return changed ? u.toString() : url;\n } catch (e) {\n return url;\n }\n }\n \n function cleanLinks() {\n document.querySelectorAll('a[href]').forEach(function(a) {\n var clean = cleanUrl(a.href);\n if (clean !== a.href) a.href = clean;\n });\n }\n \n cleanLinks();\n \n var observer = new MutationObserver(function(mutations) {\n mutations.forEach(function(m) {\n m.addedNodes.forEach(function(node) {\n if (node.nodeType === 1) {\n if (node.tagName === 'A') cleanLinks();\n node.querySelectorAll('a[href]').forEach(function(a) {\n var clean = cleanUrl(a.href);\n if (clean !== a.href) a.href = clean;\n });\n }\n });\n });\n });\n observer.observe(document.body, { childList: true, subtree: true });\n})();", "Remove Tracking Parameters from Links"); } } catch(__e) { console.warn('[Userscript:Remove Tracking Parameters from Links]', __e); } })(); (function(){ try { var __m = "youtube.com"; var __re = new RegExp('^' + "youtube\\.com" + '
          Skip to content

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

          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

          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

            , 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Auto-enable theater mode on YouTube\n(function() {\n function tryTheater() {\n var btn = document.querySelector('button[aria-label=\"Theater mode\"], ytd-player #player button[title=\"Theater mode\"]');\n if (btn && !btn.classList.contains('activated')) {\n btn.click();\n }\n }\n \n // Try immediately\n tryTheater();\n \n // Try after navigation (SPA)\n var lastUrl = location.href;\n setInterval(function() {\n if (location.href !== lastUrl) {\n lastUrl = location.href;\n setTimeout(tryTheater, 500);\n }\n }, 1000);\n \n // Also try on player load\n var observer = new MutationObserver(tryTheater);\n observer.observe(document.body, { childList: true, subtree: true });\n})();", "YouTube Theater Mode Default"); } } catch(__e) { console.warn('[Userscript:YouTube Theater Mode Default]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + '
            Skip to content

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

            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

            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

              , 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Remove or un-stick sticky/fixed headers that block content\n(function() {\n function unstick() {\n document.querySelectorAll('header, nav, [role=\"banner\"], .header, .navbar, .sticky, .fixed-top, [style*=\"position: fixed\"], [style*=\"position:sticky\"]').forEach(function(el) {\n if (el.style.position === 'fixed' || el.style.position === 'sticky' || \n getComputedStyle(el).position === 'fixed' || getComputedStyle(el).position === 'sticky') {\n el.style.position = 'static';\n el.style.top = 'auto';\n el.style.zIndex = 'auto';\n }\n });\n }\n \n unstick();\n \n var observer = new MutationObserver(unstick);\n observer.observe(document.body, { childList: true, subtree: true, attributes: true, attributeFilter: ['style', 'class'] });\n})();", "Kill Sticky Headers"); } } catch(__e) { console.warn('[Userscript:Kill Sticky Headers]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + '
              Skip to content

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

              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

              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

                , 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Universal Dark Mode - works on any site\n(function() {\n var enabled = true;\n \n function applyDarkMode() {\n if (!enabled) return;\n \n // Create style element if it doesn't exist\n var style = document.getElementById('universal-dark-mode-style');\n if (!style) {\n style = document.createElement('style');\n style.id = 'universal-dark-mode-style';\n document.head.appendChild(style);\n }\n \n // Dark mode CSS - inverts colors but preserves images/video\n style.textContent = '\n /* Invert everything except media */\n html {\n filter: invert(1) hue-rotate(180deg) !important;\n background: #1a1a2e !important;\n }\n \n /* Restore images, videos, iframes, canvas */\n img, video, iframe, canvas, svg, picture, [style*=\"background-image\"] {\n filter: invert(1) hue-rotate(180deg) !important;\n }\n \n /* Preserve specific elements that should not be inverted */\n .no-dark-mode, .no-dark-mode *,\n [data-theme=\"light\"], [data-theme=\"light\"],\n .ace_editor, .ace_editor *,\n .CodeMirror, .CodeMirror *,\n .monaco-editor, .monaco-editor *,\n .markdown-body pre, .markdown-body pre *,\n .highlight, .highlight *,\n pre code, pre code * {\n filter: none !important;\n }\n \n /* Fix common UI elements */\n .modal, .popup, .dropdown-menu, .tooltip, .popover {\n filter: invert(1) hue-rotate(180deg) !important;\n background: #2d2d44 !important;\n border-color: #444 !important;\n }\n \n /* Scrollbars */\n ::-webkit-scrollbar { background: #1a1a2e !important; }\n ::-webkit-scrollbar-thumb { background: #444 !important; }\n ::-webkit-scrollbar-thumb:hover { background: #555 !important; }\n \n /* Selection */\n ::selection { background: #4ecdc4 !important; color: #1a1a2e !important; }\n ::-moz-selection { background: #4ecdc4 !important; color: #1a1a2e !important; }\n ';\n }\n \n function removeDarkMode() {\n var style = document.getElementById('universal-dark-mode-style');\n if (style) style.remove();\n }\n \n // Toggle with Alt+Shift+D\n document.addEventListener('keydown', function(e) {\n if (e.altKey && e.shiftKey && e.key === 'D') {\n e.preventDefault();\n enabled = !enabled;\n if (enabled) {\n applyDarkMode();\n console.log('[Universal Dark Mode] Enabled');\n } else {\n removeDarkMode();\n console.log('[Universal Dark Mode] Disabled');\n }\n }\n });\n \n // Apply on load\n applyDarkMode();\n \n // Re-apply on dynamic content\n var observer = new MutationObserver(function(mutations) {\n if (enabled && !document.getElementById('universal-dark-mode-style')) {\n applyDarkMode();\n }\n });\n observer.observe(document.head, { childList: true });\n \n console.log('[Universal Dark Mode] Loaded - Press Alt+Shift+D to toggle');\n})();", "Universal Dark Mode"); } } catch(__e) { console.warn('[Userscript:Universal Dark Mode]', __e); } })(); })();
                Skip to content

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

                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

                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