You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Request]: User-installed CLI plugins are lost on every container upgrade #1617
CLI plugins installed into {install-root}/libexec/container-plugins/ survive inside the current keg but get wiped when container is upgraded (Homebrew moves the symlink from Cellar/container/0.12.3/ → 0.12.4/, old keg gets cleaned).
Steps to reproduce (Homebrew, but applies to any package manager):
Docker solves this with ~/.docker/cli-plugins/ — a stable, user-writable directory that survives Docker upgrades. Could container search a similar path?
Proposal: add a fourth search directory to PluginLoader that's outside the versioned keg, e.g.:
~/.config/container/plugins/
~/.local/lib/container/plugins/
$XDG_DATA_HOME/container/plugins/
Priority would be: user plugins dir (new, highest) → install-root plugins → app-bundle plugins. Same config.toml + bin/ layout as existing plugins. No changes to the plugin format or daemon plugin registration.
This is the main blocker for shipping a Homebrew-distributed compose plugin — right now every brew upgrade container silently breaks container compose.
changed the title [-]User-installed CLI plugins are lost on every container upgrade[/-][+][Request]: User-installed CLI plugins are lost on every container upgrade[/+]on May 29, 2026
A concrete instance of this, in case it helps make the case.
I maintain compose, which installs as a container CLI plugin, and Orchard, which offers to install it for you. Because of this issue, the install flow has to warn people that upgrading container will silently remove what they just installed, and the app has to keep re-detecting it afterwards. The failure mode for anyone who installs by hand is worse: container compose simply stops existing one day, through no fault of theirs, with nothing to tell them why.
A stable, user-writable plugin directory outside the keg, as the ~/.docker/cli-plugins comparison in the issue suggests, would resolve it for every plugin rather than each of us papering over it separately.
Activity
[-]User-installed CLI plugins are lost on every container upgrade[/-][+][Request]: User-installed CLI plugins are lost on every container upgrade[/+]Cyb3rDudu commentedon Jun 22, 2026
Sorry for pushing. Any update on this? Is this a addition we can get?
Offer to install the CLI plugin from the Compose tab
Offer to install the CLI plugin from the Compose tab
Offer to install the CLI plugin from the Compose tab
andrew-waters commentedon Sep 16, 2026
A concrete instance of this, in case it helps make the case.
I maintain compose, which installs as a
containerCLI plugin, and Orchard, which offers to install it for you. Because of this issue, the install flow has to warn people that upgradingcontainerwill silently remove what they just installed, and the app has to keep re-detecting it afterwards. The failure mode for anyone who installs by hand is worse:container composesimply stops existing one day, through no fault of theirs, with nothing to tell them why.A stable, user-writable plugin directory outside the keg, as the
~/.docker/cli-pluginscomparison in the issue suggests, would resolve it for every plugin rather than each of us papering over it separately.Offer the compose plugin reinstall after a Homebrew upgrade (#113)
jglogan commentedon Nov 13, 2026
@Cyb3rDudu @andrew-waters Holy cow, I only now saw this. It got lost in the WWDC crush.
From what I can see the problem is with the public homebrew package, which we do not maintain. You'll need to create an issue against it.
containeralready supports separate locations for plugins built into the distribution and plugins from other packages.If
INSTALL_ROOTis the path that corresponds topaths.installRootincontainer system status:${INSTALL_ROOT}/libexec/container/pluginsis wherecontainerlooks for built-in plugins${INSTALL_ROOT}/libexec/container-pluginsis wherecontainerlooks for third-party pluginsThe package recipe for Homebrew container should not touch
container-plugins.It should remove
${INSTALL_ROOT}/libexec/containerwhen the package is uninstalled.Let's keep this open for a bit and I'll do my best to answer any follow-up questions on this.
container: install bundled plugins to their upstream location
container: fix plugin directory layout
container: fix plugin directory layout
container: fix plugin directory layout
adrum commentedon Nov 14, 2026
I submitted Homebrew/homebrew-core#325534 which should resolve this issue.
container: fix plugin directory layout
container: fix plugin directory layout
formula_installer: allow postinstall writes to prefix libexec