I am not able to run perl and bash scripts in Docker container with Fedora 34 or 36.
I have also Fedora 34 on my Host.
When I run in container the bash script I see:
[root@0fbb84933e85 /]# ./command.sh
sudo: unable to stat /etc/sudoers: Operation not supported
sudo: no valid sudoers sources found, quitting
sudo: error initializing audit plugin sudoers_audit
When I try to run perl scipt I see (perl package is installed):
[root@11efb25fa64f perl]# perl ./launch-commands.pl
Can’t open perl script “./launch-commands.pl”: Operation not supported’
My base image for Fedora was downloaded form Docker Hub: Docker
I guess that base image might be very lightweight without many packages, required configurations etc. and thats why I am not able to execute perl and bash script. This is my assumption, so what should I configure to execute them both in contianers?
Important note, those two perl and bash script works on my Host without any issues, but they do not work in the container with Fedora 34/36.
Your version of Fedora won’t be getting any updates, security or otherwise, so please upgrade it anyway.
If you really want to use docker specifically and not podman for some reason, you might check out DistroBox which is a similar concept that supports Docker. It’s available in the Fedora repos (at least for Fedora 37).
Looks promiscuous, but I treat it as workaround not to solve my issue. I think it might be related with my Host OS (Feodra 34), or maybe Docker configuration and would be best to know the reason of the above failures.