'Docker --mount type=tmpfs with 'exec' permission

I'm trying to start multiple service and mount tmpfs but cant find any way to pass "exec" permission to this command.

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

Its working perfectly with --tmpfs /tmp/test:exec when you start single container but i have been smashing my head to make it work with --mount type=tmpfs,destination=/app and still no luck to find anything.

Maybe any1 good any idea to work around it or im missing something.



Solution 1:[1]

because --mount type=tmpfs,destination=/app by default runs with noexec flag which is not change able yet...

more details in this issue

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 guoard