Skip to content

imeoer/crio-nydus-store-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

crio-nydus-store-plugin

Let podman support nydus image.

Usage

Make sure you have install podman.

  1. Clone this repo
git clone git@github.com:fatelei/crio-nydus-store-plugin.git
  1. Install dep.
>>> cd /path/to/crio-nydus-store-plugin
>>> go mod tidy
  1. Install nydusd

You can download it from https://github.com/dragonflyoss/image-service/releases/

  1. Update podman config

you should edit /etc/containers/storage.conf, add this line in [storage.options] section

additionallayerstores = ["/var/lib/nydus-store/store:ref"]

Make sure you have mkdir /var/lib/nydus-store.

  1. Run

This package need nydus filesystem config, this is demo config.

{
  "device": {
    "backend": {
      "type": "registry",
      "config": {
        "scheme": "http",
        "timeout": 5,
        "connect_timeout": 5,
        "retry_limit": 2
      }
    },
    "cache": {
      "type": "blobcache",
      "config": {
        "work_dir": "/var/lib/nydus/cache"
      }
    }
  },
  "mode": "direct",
  "digest_validate": false,
  "iostats_files": false,
  "enable_xattr": true,
  "fs_prefetch": {
    "enable": true,
    "threads_count": 2
  }
}

Exce command below.

>>> cd /path/to/crio-nydus-store-plugin
>>> go run cmd/store/main.go --nydusd-path /usr/local/bin/nydusd --log-to-stdout --log-level debug --config-path /etc/nydusd-config.json --root /var/lib/nydus-store

About

crio nydus store plugin

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages