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
Update: This might have been triggered by being ZFS degraded, however it continued after resilver. Doing a prune -a fixed it.
Docker could do a better job of suggesting solutions in the error message rather than just passing through ZFS errors.
Running docker build with images on a ZFS file system that is degraded generate a confusing error:
ERROR: failed to solve: failed to prepare sha256:a790f937a6aea2600982de54a5fb995c681dd74f26968d6b74286e06839e4fb3 as i168knaqlfwod6v32797svyoh: exit status 2: "/usr/sbin/zfs snapshot data/d4cc76937f95999fda2d4dcbc4fcdca294e73d7f6202e62d62962ba9ce650287@913636948" => cannot open 'data/d4cc76937f95999fda2d4dcbc4fcdca294e73d7f6202e62d62962ba9ce650287': dataset does not existusage: snapshot [-r] [-o property=value] ... <filesystem|volume>@<snap> ...For the property list, run: zfs set|getFor the delegated permission list, run: zfs allow|unallow
fixes this, however a far clearly error message would be useful
diekhans
changed the title
Docker build fails with confusing error when ZFS is degraded
Docker build fails with confusing ZFS error message
Jan 30, 2025
Description
Update: This might have been triggered by being ZFS degraded, however it continued after resilver. Doing a prune -a fixed it.
Docker could do a better job of suggesting solutions in the error message rather than just passing through ZFS errors.
Running docker build with images on a ZFS file system that is degraded generate a confusing error:
Reproduce
docker-build.out.txt
userApps.dockerfile.txt
zpool.stat.txt
Expected behavior
docker should be able to build a snapsnot even when ZFS file system is degraged.
If it can't for some reason, it should at least give a useful error message
thanks!
docker version
% docker version Client: Docker Engine - Community Version: 27.4.1 API version: 1.47 Go version: go1.22.10 Git commit: b9d17ea Built: Tue Dec 17 15:47:23 2024 OS/Arch: linux/amd64 Context: default Server: Docker Engine - Community Engine: Version: 27.4.1 API version: 1.47 (minimum version 1.24) Go version: go1.22.10 Git commit: c710b88 Built: Tue Dec 17 15:45:36 2024 OS/Arch: linux/amd64 Experimental: false containerd: Version: 1.7.24 GitCommit: 88bf19b2105c8b17560993bee28a01ddc2f97182 runc: Version: 1.2.2 GitCommit: v1.2.2-0-g7cb3632 docker-init: Version: 0.19.0 GitCommit: de40ad0
docker info
Additional Info
No response
The text was updated successfully, but these errors were encountered: