0

我正在尝试使用以下命令在 Dockerfile 中挂载 fsx:

RUN mount -t lustre file_system_dns_name@tcp:/mountname /mnt/fsx -o noatime,flock

但它会引发以下错误:

INFO:batscli.process.process_runner:stdout> {"event": "Docker image build failed, please check log output", "exc_info": true, "exception": {"args": ["The command '/bin/sh -c mount -t lustre file_system_dns_name@tcp:/mountname /mnt/fsx -o noatime,flock' returned a non-zero code: 22"], .....

我不能在单独的 bash 文件中编写 mount 命令,因为我需要在 BATS_TRANSFORM 包中,它只复制 Dockerfile,而不是其他 shell 脚本。

4

0 回答 0