Closed cacack closed 3 years ago
Given the warnings about the production-ness of the zfs storage driver, I'm currently migrating /var/lib/docker
to a XFS filesystem on a ZVOL, where I'll be able to use the overlay2 storage driver. We'll see if this fixes things.
Works fine for me on Ubuntu 20.04.1 with an ext4 filesystem, so it's probably due to something in your OS:
$ docker build .
Sending build context to Docker daemon 2.048kB
Step 1/2 : FROM openhab/openhab:2.5.11
2.5.11: Pulling from openhab/openhab
6ec7b7d162b2: Already exists
311d5afe43fe: Pull complete
1cb842843fb9: Pull complete
c9d59ff9e9c9: Pull complete
6cc6a0d3d94d: Pull complete
3951db9532a5: Pull complete
Digest: sha256:4ca2294fd2cbf2a3c6844e9b016f54d7c7e355176402a77faa563cb50cef4afc
Status: Downloaded newer image for openhab/openhab:2.5.11
---> e159c57dec83
Step 2/2 : RUN echo "test"
---> Running in afa32c4c0fc6
test
Removing intermediate container afa32c4c0fc6
---> 3adf78aed2a6
Successfully built 3adf78aed2a6
Happy to report that fixing my storage driver did the trick. With the newer versions, docker falls back to devicemapper which appears to cause issues with buildkit now? Either way, moving to an XFS filesystem on top of a ZVOL allowed me to force docker to use overlay2 (still didn't use it by default, but maybe related to the existing cruft).
Sorry for the noise but maybe this will help any other poor soul who runs docker on a "unique" setup.
Great! For me the benefits of using xfs, btrfs etc. on a daily basis didn't outweigh the convenience and tools available for plain old boring ext4. :wink:
Given this Dockerfile:
When I build it, I receive the error failed to copy files: copy file range failed: invalid argument:
Docker info:
At first I thought it was caused by using the devicemapper storage driver even though I am using ZFS. However, after switching, I'm still receiving the same error. Any help in troubleshooting this would be appreciated!
Also, I originally created a bug ticket against the wrong project (openhab/openhab-distro#1252); moving it here.