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

Viewed 452

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.

1 Answers

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

more details in this issue

Related