我正在尝试启动多个服务并挂载 tmpfs,但找不到任何方法将“exec”权限传递给该命令。
docker run -d \
-it \
--name tmptest \
--mount type=tmpfs,destination=/app \
nginx:latest
当您启动单个容器时,它可以完美地工作,--tmpfs /tmp/test:exec
但我一直在努力使其工作,--mount type=tmpfs,destination=/app
但仍然没有运气找到任何东西。
也许任何好的任何想法都可以解决它,或者我错过了一些东西。