Move from Docker Desktop to Apple container
Apple's container tool runs the same OCI images as Docker, so most of your work moves over with a few command changes. This guide maps Docker to container, moves images and volumes, and lists the gaps that you should know about before you switch.
In short. Install the signed container package, replace docker with container for run, build, logs, exec and images, copy named volumes with a tar file, and open your docker-compose.yml in Gantry, because the CLI has no compose. You can keep Docker Desktop installed while you try it.
What changes
- One VM per container. Docker Desktop runs all containers in one Linux VM. apple/container starts a small VM for each container, so each one gets its own IP address on your Mac.
- Same images and registries. Images are OCI images; you pull from Docker Hub, GHCR and private registries as before.
- No license fee. apple/container is Apache 2.0. Docker Desktop needs a paid plan in organizations with 250 or more employees or $10M or more in revenue.
- Apple silicon and macOS 26 only. On Intel Macs, stay with a Docker engine.
Docker commands and their container equivalents
| Docker | apple/container | Notes |
|---|---|---|
docker run, create | container run, create | Most flags are the same |
docker ps, ps -a | container ls, ls -a | |
docker logs -f | container logs -f | |
docker exec -it | container exec -it | |
docker build | container build | Runs in a builder VM (container builder) |
docker images, pull, push, tag | container image ls, pull, push, tag | |
docker save, load | container image save, load | OCI archives |
docker cp | container cp | |
docker stats, inspect | container stats, inspect | |
docker commit | container commit | CLI 1.6 or later |
docker volume … | container volume … | Volumes are ext4 disk images |
docker network … | container network … | |
docker login | container registry login | |
docker system df, prune | container system df, container prune | |
docker compose up | None | Gantry runs Compose files |
| Docker Desktop Kubernetes | container cluster | CLI 1.6.1 or later |
docker context, -H ssh:// | None | Gantry shows Docker hosts next to apple/container |
Most flags of run are the same: -d, -p, -e, -v, --name, --rm, -it, -w, --entrypoint, --cpus and -m. To convert a long command, paste it in Gantry: see Create a container from a docker run command.
Bring your images
Images from a registry: pull them again with container image pull. Local images that exist only in Docker: save them to an archive and load it. container image load reads OCI archives, and recent Docker versions write an OCI layout with docker save. If the load fails, push the image to a registry and pull it.
docker save -o app.tar app:dev
container image load -i app.tar
container image pull nginx:alpine
Move named volumes
Docker keeps volume data inside its VM. Copy each volume to a tar file with a short-lived container, then unpack it into a new apple/container volume:
docker run --rm -v data:/from -v "$PWD":/to alpine tar -C /from -cf /to/data.tar .
container volume create data
container run --rm -v data:/to -v "$PWD":/from alpine tar -C /to -xf /from/data.tar
A named volume in apple/container is a sparse ext4 disk image, 512 GB at most by default. Set another size with --opt size=20g. Bind mounts of folders on your Mac work as in Docker: -v ~/project:/app.
Compose files
The container CLI has no compose command. Open the docker-compose.yml in Gantry instead (Finder, File ▸ Open Compose File… or drag and drop). Gantry builds the build: services, creates the project network and named volumes, and starts the services in depends_on order. Services reach each other by service name through network DNS aliases.
No compose file yet? On the Docker host, select the containers of the app and choose Export as Compose…, then save the file. The file marks named volumes and networks as external: true, so create them on the apple/container host first (see Move named volumes), then open the file there. Values that look like secrets become ${NAME} variables, so the file does not carry your passwords.
Networks and ports
-p 8080:80publishes a port onlocalhost, as in Docker.- Each container also has its own IP address. Create a local DNS domain with
sudo container system dns create testand run containers with--dns-domain test: they get names such asweb.test. container network createmakes user networks; containers on the same network reach each other.- There is no
--network host,noneorcontainer:mode.
What is missing
- No Docker Engine API. Tools that talk to
/var/run/docker.sock, such as Testcontainers, the Docker SDKs or Dev Containers, do not see apple/container. - No restart policies.
--restartis not available; a container does not start again on its own. - No Compose in the CLI. Gantry runs Compose files: see Compose files.
- No Docker Desktop extensions.
- Whole CPUs only:
--cpus 0.5does not work. - Kubernetes is different: use
container cluster, see Run Kubernetes on a Mac.
Keep both while you switch
Gantry manages apple/container and any Docker engine (Docker Desktop, OrbStack, Colima, or Docker over SSH) in one sidebar. Move one project at a time, and keep Docker for the tools that need its API. When you no longer need it, you can remove Docker Desktop.
Related guides
- Store containers and volumes on an external drive on a Mac
- Create a container from a docker run command on Mac (docker run to container run)
- Scan container images for vulnerabilities on a Mac with Trivy and Grype
- Apple container GUI for Mac: the complete apple/container guide
- Kubernetes on Apple container: a GUI for container cluster and a Kubernetes browser
- Gantry vs Docker Desktop vs OrbStack vs Podman Desktop on Mac (2026)
Questions and answers
Can Apple container replace Docker Desktop?
For running, building and pulling containers on Apple silicon, yes. It does not have the Docker Engine API, restart policies, extensions or a compose command. Gantry adds Compose files and a GUI.
Do Docker images work with Apple container?
Yes. apple/container uses standard OCI images and pulls from the same registries. arm64 images run natively; amd64 images run through Rosetta with --arch amd64.
Does docker compose work with Apple container?
Not from the CLI: there is no container compose. Gantry reads the docker-compose.yml and runs the services on apple/container for you.
Can I use Docker Desktop and Apple container at the same time?
Yes. They do not share images or volumes, but they can run side by side. Gantry shows both in one window.
Is Apple container free for commercial use?
Yes. apple/container is open source under the Apache 2.0 license, and Gantry is MIT licensed. Both are free for companies of any size.
Last updated 2026-11-23.