You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
EROFS is a read-only filesystem supported by containerd's `erofs` snapshotter and differ. nerdctl can convert image layers to EROFS media types with `nerdctl image convert --erofs`.
4
+
5
+
## Prerequisites
6
+
7
+
- Install containerd with the `erofs` snapshotter and differ plugins enabled.
8
+
- Install `mkfs.erofs` for `nerdctl image convert --erofs`.
9
+
10
+
Check that containerd has loaded the EROFS plugins:
11
+
12
+
```console
13
+
ctr plugins ls | grep erofs
14
+
```
15
+
16
+
## Configure containerd transfer unpack
17
+
18
+
containerd 2.3+ provides an EROFS unpack configuration by default when the `erofs` snapshotter and differ plugins are available.
19
+
20
+
If `plugins."io.containerd.transfer.v1.local".unpack_config` is configured manually, add an EROFS entry to `/etc/containerd/config.toml` and restart containerd:
Replace `amd64` with the target architecture as needed. The `linux(+erofs)/ARCH` entry also allows the `erofs` snapshotter to unpack regular `linux/ARCH` tar/gzip images.
30
+
31
+
## Convert an image
32
+
33
+
Convert an image to raw EROFS blobs:
34
+
35
+
```console
36
+
nerdctl image convert --erofs raw example.com/foo:latest example.com/foo:erofs
`--erofs-compressors` passes compressor options to `mkfs.erofs`, and `--erofs-mkfs-options` passes extra `mkfs.erofs` options. See [`command-reference.md`](./command-reference.md) for flag details.
46
+
47
+
## Pull and unpack with EROFS snapshotter
48
+
49
+
Push the converted image to a registry, then pull it with the `erofs` snapshotter:
log.G(ctx).Warnf("option --%s should be used in conjunction with --oci, forcibly enabling on oci mediatype for %s conversion", convertType, convertType)
0 commit comments