无法执行perl脚本

无法执行perl脚本

我无法在 Docker 容器中执行 perl 脚本:

[root@11efb25fa64f perl]# ./launch-commands.pl
./launch-commands.pl
bash: ./launch-commands.pl: Operation not supported

这不是特权的情况:

-rwxr-xr-x 1   31647   38727 1014 Jan 14 23:11 launch-commands.pl

我使用 Fedora-36 作为容器的基础镜像(我也尝试了 Fedora 34)

head launch-commands.pl
#!/usr/bin/perl

当我安装 perl 软件包时:

dnf install perl

消息不同,但我仍然无法执行 perl 脚本:

[root@11efb25fa64f perl]# perl ./launch-commands.pl
Can't open perl script "./launch-commands.pl": Operation not supported'

容器是这样创建的:

docker container run -it --name perl fedora:36

图片取自 Docker Hub: https://hub.docker.com/_/fedora

图片详情:

docker image ls
fedora       36        0e68c6a5f825   5 weeks ago    165MB

集装箱详情:

docker container ls -a

 CONTAINER ID   IMAGE          COMMAND                  CREATED      

    STATUS                            PORTS     NAME
11efb25fa64f   fedora:36      "/bin/bash"              27 minutes ago   Exited (126) About a minute ago perl

有谁知道为什么我无法使用 Fedora 34/36 在 Docker 容器中执行 perl 脚本?

更新:

挂载| grep 码头工人

fuse-overlayfs on /var/lib/docker/fuse-overlayfs/4ddab38226cf27392d25efd57233577f744299fccd019a934b5af547a4acaf98/merged type fuse.fuse-overlayfs (rw,nodev,noatime,user_id=0,group_id=0,default_permissions,allow_other)
nsfs on /run/docker/netns/97ad8526d392 type nsfs (rw)
fuse-overlayfs on /var/lib/docker/fuse-overlayfs/9a513cb4e3d7e2231760cb8b08ed9d514a7712edbea7171fef30f375a9f6077e/merged type fuse.fuse-overlayfs (rw,nodev,noatime,user_id=0,group_id=0,default_permissions,allow_other)
nsfs on /run/docker/netns/d5b7cde0e066 type nsfs (rw)

存储驱动:

[root@dot docker]# docker info | grep Storage
 Storage Driver: fuse-overlayfs

相关内容