Jump to content
Sign in to follow this  

How to use tmpfs mappings?

6 posts in this topic Last Reply

Recommended Posts

I am trying to create a container that uses systemd and requires the use of tmpfs mappings.


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 \

Docker Compose Example:
    image: ptr727/dwspectrum
    container_name: dwspectrum-test-container
    hostname: dwspectrum-test-host
    domainname: foo.net
    build: .
      - /sys/fs/cgroup:/sys/fs/cgroup:ro
      - ./.mount/media:/config/DW Spectrum Media
      - ./.mount/config/:/opt/digitalwatchdog/mediaserver/var
      - /run
      - /run/lock
      - /tmp
    restart: unless-stopped
    network_mode: host
      - 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?

Share this post

Link to post
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?

Share this post

Link to post

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).

Share this post

Link to post

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.

Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this