Running mihomo in Docker: Up in One Command

Advanced

Prefer not to touch the host system? MetaCubeX publishes an official image, metacubex/mihomo — one command brings the core up, which NAS users especially appreciate.

Minimal command

docker run -d --name mihomo --restart unless-stopped -v /etc/mihomo:/root/.config/mihomo -p 7890:7890 -p 9090:9090 metacubex/mihomo:latest — then drop your subscription yaml into /etc/mihomo as config.yaml.

Compose notes

Upgrades and debugging

Upgrade = pull new image, recreate container; config lives in the mounted folder and survives. If startup fails, docker logs mihomo — nine times out of ten it is a config path or syntax issue.

Ready to get started?
Download Clash Verge Rev, FlClash or the mihomo core and be up in minutes.
Go to downloads