compose: have an option to resolve `~` into the host home directory of Lima / Rancher Desktop
Author: AkihiroSudaCreated Apr 20, 2022Updated Aug 16, 2026
Labelskind/externalkind/external/limakind/external/rancher-desktopkind/feature
What is the problem you're trying to solve
nerdctl compose up via Lima or Rancher Desktop resolves ~ in the compose YAML into the guest home (/home/foo.linux or /root), not into the host home (/Users/foo).
This is not a bug but confusing.
Describe the solution you'd like
Support a new property like home = $LIMA_USERHOME in nerdctl.toml:
https://github.com/containerd/nerdctl/blob/master/docs/config.md
Probably this can be applied to expansion of ~/.docker/config.json too.
Additional context
No response
Source: containerd/nerdctl