Problem
Currently simple mounts within the container are not possible?
[root@submitter ~]# mount -t tmpfs tmpfs /mnt
mount: /mnt: permission denied.
[root@submitter ~]# capsh --print | grep cap_sys_admin
Current IAB: !cap_dac_read_search,!cap_linux_immutable,!cap_net_broadcast,!cap_net_admin,!cap_ipc_lock,!cap_ipc_owner,!cap_sys_module,!cap_sys_rawio,!cap_sys_ptrace,!cap_sys_pacct,!cap_sys_admin,!cap_sys_boot,!cap_sys_nice,!cap_sys_resource,!cap_sys_time,!cap_sys_tty_config,!cap_lease,!cap_audit_control,!cap_mac_override,!cap_mac_admin,!cap_syslog,!cap_wake_alarm,!cap_block_suspend,!cap_audit_read,!cap_perfmon,!cap_bpf,!cap_checkpoint_restore
Question
Is there a way to configure --cap-add=SYS_ADMIN for the Docker containers to enable mount privileges?
My particular use-case is to mount CernVM-FS1 in submitter & worker containers, to enable some more elaborate test-cases.
Problem
Currently simple mounts within the container are not possible?
Question
Is there a way to configure
--cap-add=SYS_ADMINfor the Docker containers to enable mount privileges?My particular use-case is to mount CernVM-FS1 in submitter & worker containers, to enable some more elaborate test-cases.
Footnotes
CernVM-FS Documentation
https://cvmfs.readthedocs.io ↩