2

我正在尝试启动多个服务并挂载 tmpfs,但找不到任何方法将“exec”权限传递给该命令。

docker run -d \
  -it \
  --name tmptest \
  --mount type=tmpfs,destination=/app \
  nginx:latest

当您启动单个容器时,它可以完美地工作,--tmpfs /tmp/test:exec 但我一直在努力使其工作,--mount type=tmpfs,destination=/app 但仍然没有运气找到任何东西。

也许任何好的任何想法都可以解决它,或者我错过了一些东西。

4

1 回答 1

1

因为--mount type=tmpfs,destination=/app默认情况下使用noexec尚无法更改的标志运行...

更多细节在这个问题

于 2022-02-07T11:37:48.037 回答