Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions content/manuals/engine/storage/containerd.md
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,8 @@ To enable automatic migration, add the `containerd-migration` feature to your

You can also set the `DOCKER_MIGRATE_SNAPSHOTTER_THRESHOLD` environment
variable to make the daemon switch automatically if you have no containers and
your image count is at or below the threshold. For systemd:
the total size of all image layers is at or below the threshold. The value is a
human-readable size (for example, `200M` or `1G`). For systemd:

```console
$ sudo systemctl edit docker.service
Expand All @@ -148,11 +149,12 @@ Add:

```ini
[Service]
Environment="DOCKER_MIGRATE_SNAPSHOTTER_THRESHOLD=5"
Environment="DOCKER_MIGRATE_SNAPSHOTTER_THRESHOLD=200M"
```

If you have no running or stopped containers and 5 or fewer images, the daemon
switches to the containerd image store on restart. Your overlay2 data remains
If you have no running or stopped containers and the total size of all image
layers is 200M or less, the daemon switches to the containerd image store on
restart. Your overlay2 data remains
on disk but becomes hidden.

## Additional resources
Expand Down