Docker downgrading volume ACL

I’m quite stumped… I am trying to setup Radicale with the following docker-compose.yml:

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
<code>version: '3.7'
services:
radicale:
image: tomsquest/docker-radicale:latest
container_name: radicale
volumes:
- /storage/enc/docker/radicale/data:/data
- /storage/enc/docker/radicale/users:/etc/radicale/users
ports:
- "5232:5232"
env_file:
- .env
restart: unless-stopped
volumes:
data:
</code>
<code>version: '3.7' services: radicale: image: tomsquest/docker-radicale:latest container_name: radicale volumes: - /storage/enc/docker/radicale/data:/data - /storage/enc/docker/radicale/users:/etc/radicale/users ports: - "5232:5232" env_file: - .env restart: unless-stopped volumes: data: </code>
version: '3.7'

services:
  radicale:
    image: tomsquest/docker-radicale:latest
    container_name: radicale
    volumes:
      - /storage/enc/docker/radicale/data:/data
      - /storage/enc/docker/radicale/users:/etc/radicale/users
    ports:
      - "5232:5232"
    env_file:
      - .env
    restart: unless-stopped

volumes:
  data:

My machine is an Ubuntu server that has a ZFS pool mounted at /storage. Below is a sequence of steps I performed to try and create a ZFS dataset (/storage/enc/docker/radicale) to be used for Radicale volumes. I set myself, paul, as a rwx user but when Docker created the volumes (subfolders of the ZFS dataset,) my permissions got downgraded to r-x… Why is this? I’ve set an ACL on the dataset and told Docker it can create some volumes within in, why is it kicking my user out? Any herlp would be greatly appreciated, thanks.

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
<code>paul@paul-lab:/storage/enc/docker$ sudo zfs create storage/enc/docker/radicale
paul@paul-lab:/storage/enc/docker$ sudo setfacl -R -m "u:paul:rwx" /storage/enc/docker/radicale
paul@paul-lab:/storage/enc/docker$ sudo setfacl -d -R -m "u:paul:rwx" /storage/enc/docker/radicale
paul@paul-lab:/storage/enc/docker$ getfacl /storage/enc/docker/radicale
getfacl: Removing leading '/' from absolute path names
# file: storage/enc/docker/radicale
# owner: root
# group: root
user::rwx
user:paul:rwx
group::r-x
mask::rwx
other::r-x
default:user::rwx
default:user:paul:rwx
default:group::r-x
default:mask::rwx
default:other::r-x
paul@paul-lab:/storage/enc/docker$ cd ~/code/paul-lab-docker/radicale/
paul@paul-lab:~/code/paul-lab-docker/radicale$ docker-compose up -d
Creating network "radicale_default" with the default driver
Creating radicale ... done
paul@paul-lab:~/code/paul-lab-docker/radicale$ cd -
/storage/enc/docker
paul@paul-lab:/storage/enc/docker$ getfacl /storage/enc/docker/radicale/users/
getfacl: Removing leading '/' from absolute path names
# file: storage/enc/docker/radicale/users/
# owner: root
# group: root
user::rwx
user:paul:rwx #effective:r-x
group::r-x
mask::r-x
other::r-x
default:user::rwx
default:user:paul:rwx
default:group::r-x
default:mask::rwx
default:other::r-x
paul@paul-lab:/storage/enc/docker$ cd radicale/users/
paul@paul-lab:/storage/enc/docker/radicale/users$ touch tmp.txt
touch: cannot touch 'tmp.txt': Permission denied
</code>
<code>paul@paul-lab:/storage/enc/docker$ sudo zfs create storage/enc/docker/radicale paul@paul-lab:/storage/enc/docker$ sudo setfacl -R -m "u:paul:rwx" /storage/enc/docker/radicale paul@paul-lab:/storage/enc/docker$ sudo setfacl -d -R -m "u:paul:rwx" /storage/enc/docker/radicale paul@paul-lab:/storage/enc/docker$ getfacl /storage/enc/docker/radicale getfacl: Removing leading '/' from absolute path names # file: storage/enc/docker/radicale # owner: root # group: root user::rwx user:paul:rwx group::r-x mask::rwx other::r-x default:user::rwx default:user:paul:rwx default:group::r-x default:mask::rwx default:other::r-x paul@paul-lab:/storage/enc/docker$ cd ~/code/paul-lab-docker/radicale/ paul@paul-lab:~/code/paul-lab-docker/radicale$ docker-compose up -d Creating network "radicale_default" with the default driver Creating radicale ... done paul@paul-lab:~/code/paul-lab-docker/radicale$ cd - /storage/enc/docker paul@paul-lab:/storage/enc/docker$ getfacl /storage/enc/docker/radicale/users/ getfacl: Removing leading '/' from absolute path names # file: storage/enc/docker/radicale/users/ # owner: root # group: root user::rwx user:paul:rwx #effective:r-x group::r-x mask::r-x other::r-x default:user::rwx default:user:paul:rwx default:group::r-x default:mask::rwx default:other::r-x paul@paul-lab:/storage/enc/docker$ cd radicale/users/ paul@paul-lab:/storage/enc/docker/radicale/users$ touch tmp.txt touch: cannot touch 'tmp.txt': Permission denied </code>
paul@paul-lab:/storage/enc/docker$ sudo zfs create storage/enc/docker/radicale
paul@paul-lab:/storage/enc/docker$ sudo setfacl -R -m "u:paul:rwx" /storage/enc/docker/radicale
paul@paul-lab:/storage/enc/docker$ sudo setfacl -d -R -m "u:paul:rwx" /storage/enc/docker/radicale
paul@paul-lab:/storage/enc/docker$ getfacl /storage/enc/docker/radicale
getfacl: Removing leading '/' from absolute path names
# file: storage/enc/docker/radicale
# owner: root
# group: root
user::rwx
user:paul:rwx
group::r-x
mask::rwx
other::r-x
default:user::rwx
default:user:paul:rwx
default:group::r-x
default:mask::rwx
default:other::r-x
paul@paul-lab:/storage/enc/docker$ cd ~/code/paul-lab-docker/radicale/
paul@paul-lab:~/code/paul-lab-docker/radicale$ docker-compose up -d
Creating network "radicale_default" with the default driver
Creating radicale ... done
paul@paul-lab:~/code/paul-lab-docker/radicale$ cd -
/storage/enc/docker
paul@paul-lab:/storage/enc/docker$ getfacl /storage/enc/docker/radicale/users/
getfacl: Removing leading '/' from absolute path names
# file: storage/enc/docker/radicale/users/
# owner: root
# group: root
user::rwx
user:paul:rwx                  #effective:r-x
group::r-x
mask::r-x
other::r-x
default:user::rwx
default:user:paul:rwx
default:group::r-x
default:mask::rwx
default:other::r-x
paul@paul-lab:/storage/enc/docker$ cd radicale/users/
paul@paul-lab:/storage/enc/docker/radicale/users$ touch tmp.txt
touch: cannot touch 'tmp.txt': Permission denied

Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa Dịch vụ tổ chức sự kiện 5 sao Thông tin về chúng tôi Dịch vụ sinh nhật bé trai Dịch vụ sinh nhật bé gái Sự kiện trọn gói Các tiết mục giải trí Dịch vụ bổ trợ Tiệc cưới sang trọng Dịch vụ khai trương Tư vấn tổ chức sự kiện Hình ảnh sự kiện Cập nhật tin tức Liên hệ ngay Thuê chú hề chuyên nghiệp Tiệc tất niên cho công ty Trang trí tiệc cuối năm Tiệc tất niên độc đáo Sinh nhật bé Hải Đăng Sinh nhật đáng yêu bé Khánh Vân Sinh nhật sang trọng Bích Ngân Tiệc sinh nhật bé Thanh Trang Dịch vụ ông già Noel Xiếc thú vui nhộn Biểu diễn xiếc quay đĩa Dịch vụ tổ chức tiệc uy tín Khám phá dịch vụ của chúng tôi Tiệc sinh nhật cho bé trai Trang trí tiệc cho bé gái Gói sự kiện chuyên nghiệp Chương trình giải trí hấp dẫn Dịch vụ hỗ trợ sự kiện Trang trí tiệc cưới đẹp Khởi đầu thành công với khai trương Chuyên gia tư vấn sự kiện Xem ảnh các sự kiện đẹp Tin mới về sự kiện Kết nối với đội ngũ chuyên gia Chú hề vui nhộn cho tiệc sinh nhật Ý tưởng tiệc cuối năm Tất niên độc đáo Trang trí tiệc hiện đại Tổ chức sinh nhật cho Hải Đăng Sinh nhật độc quyền Khánh Vân Phong cách tiệc Bích Ngân Trang trí tiệc bé Thanh Trang Thuê dịch vụ ông già Noel chuyên nghiệp Xem xiếc khỉ đặc sắc Xiếc quay đĩa thú vị
Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa
Thiết kế website Thiết kế website Thiết kế website Cách kháng tài khoản quảng cáo Mua bán Fanpage Facebook Dịch vụ SEO Tổ chức sinh nhật