The project is an implementation of additional layer store plugin of CRI-O/Podman, it provides CRI-O/Podman with the ability to lazy mount nydus images.
- Build store plugin
$ git clone https://github.com/containers/nydus-storage-plugin.git
$ cd nydus-storage-plugin
$ make
- Install nydusd
Download nydus binaries from nydus release page, and then install with the command below:
$ tar xzvf nydus-static-$version-linux-amd64.tgz
$ sudo mv nydus-static/nydusd /usr/bin/nydusd
$ sudo mv nydus-static/nydus-image /usr/bin/nydus-image
- Configure podman
Replace /etc/containers/storage.conf
with misc/storage.conf
.
- Run store plugin
Copy misc/nydusd-config.json
to /etc
.
$ sudo bin/nydus-store --log-to-stdout --log-level info \
--config-path /etc/nydusd-config.json \
--root /var/lib/nydus-store
- Run container with nydus image
$ sudo podman run -it ghcr.io/dragonflyoss/image-service/nginx:nydus-latest echo hello word
For the list of pre-converted nydus images, see nydus packages, for more details about how to build nydus image, please refer to nydusify conversion tool and acceld.