ptr727 Posted December 3, 2019 Share Posted December 3, 2019 I am trying to create a container that uses systemd and requires the use of tmpfs mappings. E.g. Docker Run Example: docker run -d \ --name=dwspectrum-test-container \ --restart=unless-stopped \ --network=host \ --tmpfs /run \ --tmpfs /run/lock \ --tmpfs /tmp \ -v /sys/fs/cgroup:/sys/fs/cgroup:ro \ -v "/.mount/media:/config/DW Spectrum Media" \ -v /.mount/config:/opt/digitalwatchdog/mediaserver/var \ ptr727/dwspectrum Docker Compose Example: services: dwspectrum: image: ptr727/dwspectrum container_name: dwspectrum-test-container hostname: dwspectrum-test-host domainname: foo.net build: . volumes: - /sys/fs/cgroup:/sys/fs/cgroup:ro - ./.mount/media:/config/DW Spectrum Media - ./.mount/config/:/opt/digitalwatchdog/mediaserver/var tmpfs: - /run - /run/lock - /tmp restart: unless-stopped network_mode: host ports: - 7001:7001 How do I add tmpfs mappings in Unraid's docker configuration, or do I need to specify them as additional options on the commandline? Quote Link to comment
primeval_god Posted December 3, 2019 Share Posted December 3, 2019 Add the --tmpfs flags under the extra parameters I believe Quote Link to comment
ptr727 Posted December 3, 2019 Author Share Posted December 3, 2019 Ok, it is ugly, but I'll give it a try. I really wish we could just use compose files. Quote Link to comment
Ioannis Posted December 4, 2019 Share Posted December 4, 2019 16 hours ago, ptr727 said: Ok, it is ugly, but I'll give it a try. I really wish we could just use compose files. I believe docker-compose is available in nerdpack plugin? Quote Link to comment
ptr727 Posted December 4, 2019 Author Share Posted December 4, 2019 Ok thx, so CLI use only then. Quote Link to comment
primeval_god Posted December 4, 2019 Share Posted December 4, 2019 Might be worth logging a feature request to have tmpfs mounts supported in Dockerman. So far as i know no one has asked for it yet (though i didnt actually check). Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.