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

Docker commands and their container equivalents

Dockerapple/containerNotes
docker run, createcontainer run, createMost flags are the same
docker ps, ps -acontainer ls, ls -a
docker logs -fcontainer logs -f
docker exec -itcontainer exec -it
docker buildcontainer buildRuns in a builder VM (container builder)
docker images, pull, push, tagcontainer image ls, pull, push, tag
docker save, loadcontainer image save, loadOCI archives
docker cpcontainer cp
docker stats, inspectcontainer stats, inspect
docker commitcontainer commitCLI 1.6 or later
docker volume …container volume …Volumes are ext4 disk images
docker network …container network …
docker logincontainer registry login
docker system df, prunecontainer system df, container prune
docker compose upNoneGantry runs Compose files
Docker Desktop Kubernetescontainer clusterCLI 1.6.1 or later
docker context, -H ssh://NoneGantry 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.

Terminal
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:

Terminal
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

What is missing

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.

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.