Docker Service Failure

Using the docker Service inside firebase studio to host the Apache Polaris image is throwing this error message: "failed to register layer: Lsetxattr user.overlay.impure /etc: operation not supported.

  • Lsetxattr: This refers to the lsetxattr() system call, which is used to set extended attributes on a file or directory. Extended attributes are metadata associated with files beyond the usual permissions, timestamps, etc.
  • user.overlay.impure: This is a specific extended attribute that Docker uses, particularly when employing the overlay2 storage driver (which is the default and recommended driver for many Docker installations). It’s related to how Docker manages layers of images and containers.
  • /etc: This is a critical directory in Linux systems, containing system-wide configuration files.
  • operation not supported: This is the core of the problem. It means that the underlying filesystem or kernel where Docker is trying to perform this operation (setting the user.overlay.impure extended attribute on a file within /etc) does not support it.

How to resolve it in firebase studio? @kirupa

Thanks

Nelson

Hi Nelson.

I’m not particularly familiar with this syscall but happy to take a look. In general, we can only support rootless docker and rootless docker doesn’t seem to support Lsetxattr

Can you help me with repro steps? Is it correct to assume that you see this issue when pulling from the polaris image? Trying to see if there’s a workaround

>> cat docker-compose.yml

services:

polaris:
image: apache/polaris:latest
platform: linux/amd64
ports:

  • “8181:8181”
  • “8182:8182”
    networks:
  • local-iceberg-lakehouse

networks:
local-iceberg-lakehouse:
name: local-iceberg-lakehouse

>> docker-compose up --build
docker-compose is not installed, but available in the following packages, pick one to run it, Ctrl+C to cancel.
this path will be fetched (0.01 MiB download, 0.05 MiB unpacked):
/nix/store/80wijs24wjp619zmrasrh805bax02xjm-stdenv-linux
copying path ‘/nix/store/80wijs24wjp619zmrasrh805bax02xjm-stdenv-linux’ from ‘https://cache.nixos.org’ to ‘local-overlay://’…
[+] Running 10/12
⠧ polaris [⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿] 327.6MB / 327.9MB Pulling 15.6s
:check_mark: 802798577ba6 Pull complete 6.0s
⠋ ffe5d2bfdb0a Extracting [==================================================>] 96.3MB/96.3MB 13.5s
:check_mark: fc6193982862 Download complete 0.4s
:check_mark: 4f4fb700ef54 Download complete 0.8s
:check_mark: 0c55a3fe73d2 Download complete 5.1s
:check_mark: 71a8d4d9efa2 Download complete 1.4s
:check_mark: df76f7d249bf Download complete 1.8s
:check_mark: 13e867aeb5a1 Download complete 2.3s
:check_mark: 5692955f76e8 Download complete 2.7s
:check_mark: 65bd501efc6e Download complete 2.9s
:check_mark: 1dd48d503ea9 Download complete 3.0s
failed to register layer: lsetxattr user.overlay.impure /etc: operation not supported