I have done the following
Steps to reproduce
Steps to Reproduce
- brew install container (on a clean system)
- container system start
- Observe: apiserver crashes in a loop with "cannot find any plugins with type network"
Workaround
Two symlinks and a config.toml are needed post-install:
mkdir -p "${BREW_PREFIX}/libexec/container"
ln -sf "${BREW_PREFIX}/opt/container/libexec/container-plugins" \
"${BREW_PREFIX}/libexec/container/plugins"
ln -sf "${BREW_PREFIX}/opt/container/libexec/container-plugins" \
"${BREW_PREFIX}/libexec/container-plugins"
mkdir -p "$HOME/Library/Application Support/com.apple.container/config"
cat > "$HOME/Library/Application Support/com.apple.container/config/config.toml" <<EOF
install-root = "${BREW_PREFIX}"
EOF
Problem description
Description
When installing container 1.0.0 via brew install container, the apiserver
fails immediately with:
cannot find any plugins with type network
This makes the tool completely non-functional after a standard brew install.
Root Cause
The apiserver derives install-root from the brew prefix (e.g. /opt/homebrew
or ~/.brew) and looks for plugins at:
{brew-prefix}/libexec/container/plugins/
But the Homebrew formula installs plugins to:
{brew-prefix}/Cellar/container/1.0.0/libexec/container-plugins/
which is symlinked via opt to:
{brew-prefix}/opt/container/libexec/container-plugins/
Neither of these matches the path the apiserver expects. No config.toml is
written by the formula to tell the apiserver where to find its plugins.
Expected Behaviour
brew install container && container system start should work out of the box.
The formula's post_install block should create these symlinks or write the
config.toml correctly.
Environment
## Environment
- macOS 26 (Tahoe)
- Apple Silicon
- container 1.0.0 via Homebrew formula
- Reproducible with both system-wide (/opt/homebrew) and user-local (~/.brew)
Homebrew installations
Code of Conduct
I have done the following
Steps to reproduce
Steps to Reproduce
Workaround
Two symlinks and a config.toml are needed post-install:
Problem description
Description
When installing
container1.0.0 viabrew install container, the apiserverfails immediately with:
This makes the tool completely non-functional after a standard brew install.
Root Cause
The apiserver derives
install-rootfrom the brew prefix (e.g./opt/homebrewor
~/.brew) and looks for plugins at:But the Homebrew formula installs plugins to:
which is symlinked via opt to:
Neither of these matches the path the apiserver expects. No config.toml is
written by the formula to tell the apiserver where to find its plugins.
Expected Behaviour
brew install container && container system startshould work out of the box.The formula's
post_installblock should create these symlinks or write theconfig.toml correctly.
Environment
Code of Conduct