Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Creating a docker template

Featured Replies

Are there any tutorials for creating a docker template for unraid?

 

Theres an image for mongodb on docker hub (https://hub.docker.com/r/tutum/mongodb/) that I really want to run as a container on my unraid server, but I haven't see it in any of the template repos. How easy would it be to create my own template for it so I can install it on my unraid server?

Are there any tutorials for creating a docker template for unraid?

 

Theres an image for mongodb on docker hub (https://hub.docker.com/r/tutum/mongodb/) that I really want to run as a container on my unraid server, but I haven't see it in any of the template repos. How easy would it be to create my own template for it so I can install it on my unraid server?

Turn on dockerHub searches within CA and search for it then add it.  If CA doesn't pick up the /data/db and the port, the merely add it yourself.  done

 

(Or alternatively, hit Add Container within the docker tab and manually enter in all the relevant information.  done)

  • Author

Does CA search through all of docker hub? I just enabled dockerhub searches and tried searching for mongodb and nothing came up...

Yes.  Did you hit get more results from docker hub.

  • Author

ah, cant believe I missed that button! thanks!

So I am interested in doing just this. I found an image on docker hub. I got CA to convert it. I am now adding container, but I am wondering about what to use for environment variables?

 

The image I found has a sample docker-compose.yml that has a bunch of variables. I'm assuming I should use some/all of these?

 

#docker-compose.yml
sync-engine:
  image: nhurel/nylas-sync-engine
  ports:
    - 5555:5555
  links:
    - mysql:mysql
    - redis:redis
  hostname: sync-engine
  log_opt:
    max-size: "10m"
    max-file: "10"

mysql:
  image: mysql
  environment:
    - MYSQL_ROOT_PASSWORD=root
  volumes:
    - nylas_mysql:/var/lib/mysql
  log_opt:
    max-size: "10m"
    max-file: "10"

redis:
  image: redis
  volumes:
    - nylas_redis:/data
  log_opt:
    max-size: "10m"
    max-file: "10"

  • 9 months later...

I am also working on creating some templates and was wondering if I need to setup nobody users for the containers or if it's OK to run as is?

I am also working on creating some templates and was wondering if I need to setup nobody users for the containers or if it's OK to run as is?

 

You can't just set the parameter in the template, the functionality needs to be baked into the docker container code.

Right, I'm aware of that. I just wanted to know if that was a necessity. I I imagine it would be safer to set one up than not to.

 

Sent from my SAMSUNG-SM-G900A using Tapatalk

 

 

Right, I'm aware of that. I just wanted to know if that was a necessity. I I imagine it would be safer to set one up than not to.

 

Sent from my SAMSUNG-SM-G900A using Tapatalk

 

As long as it runs as 99:100 it'll work fine on unraid but will cause issues on other platforms.

Right, I'm aware of that. I just wanted to know if that was a necessity. I I imagine it would be safer to set one up than not to.

 

Sent from my SAMSUNG-SM-G900A using Tapatalk

 

As long as it runs as 99:100 it'll work fine on unraid but will cause issues on other platforms.

I guess a better question to ask would be what's different about running containers on unraid vs standard docker?

 

Sent from my SAMSUNG-SM-G900A using Tapatalk

 

 

Nothing, each Linux machine will have certain UIDs and GIDs that you may want the container to use.  In Unraid they are 99:100.  So you can hardcode that in and the container will run fine on Unraid and the appdata will have the correct permissions to enable editing, or you can make it configurable and people can adjust it to whatever suits them and what distro they're using.

Nothing, each Linux machine will have certain UIDs and GIDs that you may want the container to use.  In Unraid they are 99:100.  So you can hardcode that in and the container will run fine on Unraid and the appdata will have the correct permissions to enable editing, or you can make it configurable and people can adjust it to whatever suits them and what distro they're using.

 

So how do I go about doing that?  Is there an easy example I can follow?

Or is it as simple as putting the following in the dockerfile?

 

RUN useradd --uid 99 --gid 100 docker

Archived

This topic is now archived and is closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.