I have docker27.3 installed and The zfs storage pool is created. but when I start dockerd , it Unable to start successfully.
cat /etc/docker/daemon.json
{
"exec-opts": [
"native.cgroupdriver=systemd"
],
"insecure-registries": [
"sealos.hub:5000"
],
"log-driver": "json-file",
"log-level": "warn",
"log-opts": {
"max-file": "10",
"max-size": "300m"
},
"hosts": ["unix:///var/run/docker.sock", "tcp://0.0.0.0:2376"],
"storage-driver": "zfs",
"storage-opts": [
"size=30G"
],
"max-concurrent-downloads": 50,
"max-concurrent-uploads": 50,
"live-restore": true,
"default-runtime": "nvidia",
"runtimes": {
"nvidia": {
"args": [],
"path": "nvidia-container-runtime"
}
}
}
root@l101:~# zfs list
NAME USED AVAIL REFER MOUNTPOINT
zpool-docker 600K 6.75T 204K /var/lib/docker
root@l101:~# zpool list
NAME SIZE ALLOC FREE CKPOINT EXPANDSZ FRAG CAP DEDUP HEALTH ALTROOT
zpool-docker 6.97T 804K 6.97T - - 0% 0% 1.00x ONLINE -
then start dockerd
root@l101:~# dockerd
WARN[2024-11-11T17:14:21.489661908+08:00] Binding to IP address without --tlsverify is insecure and gives root access on this machine to everyone who has access to your network. host="tcp://0.0.0.0:2376"
WARN[2024-11-11T17:14:21.489772365+08:00] Binding to an IP address, even on localhost, can also give access to scripts run in a browser. Be safe out there! host="tcp://0.0.0.0:2376"
WARN[2024-11-11T17:14:21.489785825+08:00] [DEPRECATION NOTICE] In future versions this will be a hard failure preventing the daemon from starting! Learn more at: https://docs.docker.com/go/api-security/ host="tcp://0.0.0.0:2376"
WARN[2024-11-11T17:14:22.490295709+08:00] Binding to an IP address without --tlsverify is deprecated. Startup is intentionally being slowed down to show this message host="tcp://0.0.0.0:2376"
WARN[2024-11-11T17:14:22.490372026+08:00] Please consider generating tls certificates with client validation to prevent exposing unauthenticated root access to your network host="tcp://0.0.0.0:2376"
WARN[2024-11-11T17:14:22.490395785+08:00] You can override this by explicitly specifying '--tls=false' or '--tlsverify=false' host="tcp://0.0.0.0:2376"
WARN[2024-11-11T17:14:22.490411710+08:00] Support for listening on TCP without authentication or explicit intent to run without authentication will be removed in the next release host="tcp://0.0.0.0:2376"
failed to start daemon: error initializing graphdriver: Unknown option size: zfs
but ZFS storage driver | Docker Docs have some configs
my docker is 27.3
root@l101:~# docker version
Client:
Version: 27.3.1
API version: 1.47
Go version: go1.22.7
Git commit: ce12230
Built: Fri Sep 20 11:39:44 2024
OS/Arch: linux/amd64
Context: default
root@l101:~# dockerd -v
Docker version 27.3.1, build 41ca978