【问题标题】:Docker --mount type=tmpfs with 'exec' permission具有 'exec' 权限的 Docker --mount type=tmpfs
【发布时间】:2021-06-18 11:49:57
【问题描述】:

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

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

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

也许任何一个好的想法来解决它或者我错过了什么。

【问题讨论】:

    标签: docker permissions mount tmpfs


    【解决方案1】:

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

    更多详情请看issue

    【讨论】:

      猜你喜欢
      • 2022-08-08
      • 2023-01-26
      • 2019-07-10
      • 1970-01-01
      • 1970-01-01
      • 2022-06-17
      • 2020-08-11
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多