February 2, 201610 yr 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?
February 2, 201610 yr 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)
February 2, 201610 yr Author Does CA search through all of docker hub? I just enabled dockerhub searches and tried searching for mongodb and nothing came up...
February 5, 201610 yr 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"
November 16, 20169 yr 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?
November 16, 20169 yr 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.
November 16, 20169 yr 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
November 16, 20169 yr 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.
November 16, 20169 yr 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
November 16, 20169 yr 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.
November 20, 20169 yr 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?
November 20, 20169 yr 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.