What this guide covers
When you finish, docker run works, image pulls go through your own account, and you have a way to check and reclaim disk usage. You need: a remote desktop (both are graphical apps) and a configuration with memory to spare.
Steps
Read the license terms before choosing
Both work. The main difference is licensing. Docker Desktop requires a paid subscription for commercial use by companies above a certain size; the thresholds are on the official Docker install page. OrbStack's licensing page states that personal non-commercial use is free, while freelance, business and other commercial use requires a per-user license. If what you do on the rented machine is a commercial project, treat it as commercial use. Software licensing is your own responsibility.
Install Docker Desktop
Download the installer in the remote desktop, open
Docker.dmg, drag the icon into Applications, launch it and accept the subscription agreement. The official docs state that the current default configuration needs no privileged access and does not ask for a password, and that the command line tools go in.docker/binunder your user directory. Older versions ask you to choose between recommended and advanced settings during install; if you see that, enter the administrator password when prompted. Some optional tools on Apple silicon need Rosetta; see the official page on whether to install it.Or install OrbStack
Following the official OrbStack quick start: download it and open it, and it is ready to use. You can also run
brew install orbstack. The official docs say it can coexist with Docker Desktop through Docker contexts, and they provideorb docker migratefor moving existing data. Memory on a remote machine is limited, so we suggest keeping only one of them running permanently.Log in to the registry before pulling images
This point is specific to a rented machine. The official Docker Hub documentation states that the limit on anonymous pulls is counted per source IP address, while for logged-in users it is counted per account. The public exit of this machine may be shared with other machines, so part of the anonymous allowance may already have been used by someone else. Run
docker loginwith your own account before pulling, and the allowance depends only on you.Treat published ports as local ports only
A port published with
docker run -pis a port on this Mac. Reach it withlocalhostin the browser inside the remote desktop. Do not treat it as a service open to the public internet: whether this machine's ports can be reached from the public internet is outside what we provide, and you should not change routing, set up port forwarding or install tunneling tools for it. Leave advanced options in older installers, such as privileged port mapping, turned off unless you clearly need them.Set resource limits for containers
The container engine runs inside a lightweight virtual machine that holds on to part of the memory for as long as it runs. In the app's settings, check and limit the memory and CPU it may use (see each app's settings screen for the exact location), and leave headroom for the system and the remote desktop. When memory fills up, the first thing to lag is usually your remote access picture. Also decide whether it needs to start automatically at login: turn that off if you rarely use it, and start it when you need it.
Clean up images and build cache regularly
Images, stopped containers and build cache keep growing.
docker system dfshows the usage.docker system pruneremoves stopped containers, unused networks, dangling images and unused build cache. Adding-aalso deletes every image not used by a container, and anonymous volumes are removed only if you add--volumes, so confirm the volumes hold nothing you want to keep before you run it. The built-in disk of a rented machine cannot be expanded, so make this part of a regular check.
FAQ
Can a rented Mac mini run virtualization?
During the rental term the whole Mac is dedicated to you, and the container engine installs and manages the virtualization it depends on by itself, in user space. For specific compatibility, go by the official system requirements of Docker or OrbStack.
Can it run x86 images?
Running x86 images on Apple silicon goes through translation, and both speed and compatibility are worse than with native arm64 images; see the official docs for details. Prefer an arm64 image whenever one is available.
Do containers come back up by themselves after a restart?
It depends on whether the app is set to start at login and whether the containers have a restart policy, and in every case only after your account has logged in to the desktop. After a restart, log in and check.
Can I use it as my team's CI machine?
Yes, as a self-hosted runner. For things to watch out for, see using it as a CI runner. For prices and availability, see the plans page.
Related
- Rented Mac mini as an always-on build machine for small teams? Count your build minutes first
- How to check logs and disk space on a remote Mac mini
- How to install Homebrew on a rented remote Mac mini and keep it maintained
- Remote Mac mini vs VPS: which one should I choose?
- Is the network exit on my rented Mac mini used only by me?
Pricing and availability: see the plans page · Help center (中文) · Refund policy (中文) · Telegram Contact support