Folder

Is ~/.docker/models safe to delete on a Mac?

Careful: ~/.docker/models holds every model Docker Model Runner pulled, so remove the ones you no longer use with docker model rm instead of deleting files, because models can share data.

1 safe1 careful2 never

updated read 3 minfor Docker Model Runner on macOS

The short answer

  1. 01

    Careful. ~/.docker/models is the default store, unless MODELS_PATH points elsewhere.

  2. 02

    Docker Model Runner writes it when you pull a model, or use one you do not have yet.

  3. 03

    It is separate from Docker Desktop's disk image, so docker system prune never sees it.

  4. 04

    You lose the models. They must be pulled again.

  5. 05

    The command: docker model ls to see them, then docker model rm <model> for each one you no longer need.

See its real size on your Mac. Hoardless measures this folder and previews the delete.Download free trial

What is ~/.docker/models?

It is Docker Model Runner's local model store. Docker's Model Runner docs say models are pulled the first time you use them and stored locally. The folder comes from the docker/model-runner source: ModelsPath() in pkg/envconfig/envconfig.go returns MODELS_PATH if set, else ~/.docker/models. Hoardless read the store layout from the same source:

  • layout.json: the store's marker file. The store refuses to reset a folder without it.
  • models.json: the index, with each model's id, tags and files.
  • blobs, manifests, bundles: the model data, each sorted by digest.

It is not inside Docker Desktop's disk image, so docker system prune never sees it. For the full picture across Ollama, Hugging Face and LM Studio, see where local AI models live on a Mac.

What writes it and why does it grow?

Docker Model Runner writes it every time it pulls a model. Nothing removes a model until you do. Models can list the same blob, so deleting a model keeps any blob another model lists.

How big does it get?

It depends only on which models you pulled. Check with Docker's own list, then the folder:

docker model ls

Lists your local models. Removes nothing. docker model ls is an alias of docker model list.

du -sh ~/.docker/models

Prints the real space used. If you set MODELS_PATH, measure that folder instead.

Is it safe to delete ~/.docker/models?

WhatVerdictWhat you lose
A model, removed with docker model rmSafeThat model. Pull it again if you need it.
The whole models folderCarefulEvery model. Each must be pulled again.
Single files in blobs, manifests or bundlesNeverThe index and the files disagree, and a model another entry shares can break.
layout.json and models.jsonNeverThe store's marker and index. The store refuses to reset a folder without the marker.

How do I delete Docker Model Runner models?

Use Docker's own commands. The CLI reference gives docker model rm, which removes local models downloaded from Docker Hub:

docker model ls
docker model rm ai/smollm2

Removes one model by the name docker model ls prints. ai/smollm2 is an example, use your own. Blobs another model lists stay on disk.

What Hoardless does: its Docker Model Runner detector reads models.json and lists one Confirm row per model, removed by running docker model rm -- <tag>. It looks for the docker command in /usr/local/bin, /opt/homebrew/bin and Docker Desktop's app bundle, then your shell path. If none is found, no row is offered. Each row's size counts only the blobs that model alone uses, which is what the removal frees. Shared bytes are named in the note and never counted twice. The row's note says Docker Desktop must be running. It never deletes files in the store directly.

What comes back and when?

Nothing comes back on its own. A removed model returns only when you pull it again, and it downloads in full. Apps that call that model get an error until then.

See which Docker model really holds the space

Hoardless sizes each Docker Model Runner model by the bytes only it uses, names what is shared, and removes models with docker model rm after you review the plan (Confirm tier).

14-day full trial. macOS 14 or later.

Questions

Does docker system prune remove these models?

No. The store is a separate folder, not part of Docker Desktop's disk image, according to the Docker Model Runner source Hoardless reads. Remove models with docker model rm.

Does docker model rm need Docker Desktop running?

Hoardless's removal runs the docker command, and its row note says Docker Desktop must be running. Start it before you remove a model.

Why does removing a model free less than its size?

Models can list the same blob. Deleting a model keeps blobs another model lists, so the space freed can be smaller than the model's size.

Can I move the store?

The folder is MODELS_PATH when set, else ~/.docker/models, per the Docker Model Runner source (pkg/envconfig/envconfig.go).

Is this the same as Ollama's models?

No. Docker Model Runner has its own store. If you also use Ollama, see the Ollama models page: each tool stores its own copy of a model.