Problem running docker inside LXC container

There seems to be “random errors” when trying to extract docker images that gets pulled inside my LXC container.

I get error like these when trying to pull docker images:

Creating docker-compose.yml
Pulling docker images.
Pulling fluentd  ... extracting (100.0%)
Pulling siridb   ... extracting (100.0%)
Pulling redis    ... done
Pulling postgres ... done
Pulling rabbitmq ... done
Pulling nginx    ... download complete
Pulling ucrm     ... download complete
Pulling unms     ... download complete
Pulling netflow  ... extracting (100.0%)

ERROR: for fluentd  failed to register layer: Error processing tar file(exit status 1): replaceDirWithOverlayOpaque("/etc/ca-certificates") failed: createDirWithOverlayOpaque("/etc/rdwoo542523568") failed: failed to mkdir /etc/rdwoo542523568/m/d: mkdir /etc/rdwoo542523568/m/d: input/output error

ERROR: for nginx  failed to register layer: Error processing tar file(exit status 1): replaceDirWithOverlayOpaque("/etc/nginx") failed: createDirWithOverlayOpaque("/etc/rdwoo087941222") failed: failed to mkdir /etc/rdwoo087941222/m/d: mkdir /etc/rdwoo087941222/m/d: input/output error

ERROR: for netflow  failed to register layer: Error processing tar file(exit status 1): replaceDirWithOverlayOpaque("/home/app") failed: createDirWithOverlayOpaque("/home/rdwoo396199294") failed: failed to mkdir /home/rdwoo396199294/m/d: mkdir /home/rdwoo396199294/m/d: input/output error

ERROR: for ucrm  failed to register layer: Error processing tar file(exit status 1): replaceDirWithOverlayOpaque("/usr/src/ucrm") failed: createDirWithOverlayOpaque("/usr/src/rdwoo985977234") failed: failed to mkdir /usr/src/rdwoo985977234/m/d: mkdir /usr/src/rdwoo985977234/m/d: input/output error

ERROR: for unms  failed to register layer: Error processing tar file(exit status 1): replaceDirWithOverlayOpaque("/home/app") failed: createDirWithOverlayOpaque("/home/rdwoo590378847") failed: failed to mkdir /home/rdwoo590378847/m/d: mkdir /home/rdwoo590378847/m/d: input/output error

ERROR: for siridb  failed to register layer: Error processing tar file(exit status 1): replaceDirWithOverlayOpaque("/etc/ca-certificates") failed: createDirWithOverlayOpaque("/etc/rdwoo210311524") failed: failed to mkdir /etc/rdwoo210311524/m/d: mkdir /etc/rdwoo210311524/m/d: input/output error
ERROR: failed to register layer: Error processing tar file(exit status 1): replaceDirWithOverlayOpaque("/etc/ca-certificates") failed: createDirWithOverlayOpaque("/etc/rdwoo210311524") failed: failed to mkdir /etc/rdwoo210311524/m/d: mkdir /etc/rdwoo210311524/m/d: input/output error
ERROR: Failed to pull docker images

On my host machine I get these errors in dmesg

Mar 01 20:23:55 lambda kernel: overlayfs: upper fs does not support xattr, falling back to index=off and metacopy=off.
Mar 01 20:23:50 lambda kernel: overlayfs: upper fs does not support xattr, falling back to index=off and metacopy=off.
Mar 01 20:23:46 lambda kernel: overlayfs: upper fs does not support xattr, falling back to index=off and metacopy=off.
Mar 01 20:23:43 lambda kernel: overlayfs: upper fs does not support xattr, falling back to index=off and metacopy=off.
Mar 01 20:23:37 lambda kernel: overlayfs: upper fs does not support xattr, falling back to index=off and metacopy=off.
Mar 01 20:23:36 lambda kernel: overlayfs: upper fs does not support xattr, falling back to index=off and metacopy=off.

Why is this?

Seems that switching from overlay2 to overlay for the docker service worked.

What storage pool driver are you using for LXD?