Docker Community Forums

Share and learn in the Docker community.

Docker compose tmpfs noexec

I’m using docker compose to create a tmpfs on /tmp. By default this is being mounted with noexec. I need it to be mounted with exec option. I don’t have root access so I can’t remount it. Is there a way to do with with docker-compose yaml?

version: "3.6"

 - type: tmpfs
    target: /tmp
    tmpfs:
     size: 8G