Multiple instances of same docker image

N20Visuals

Dabbler
Joined
Jan 16, 2021
Messages
21
Hi everyone,

i'm currently running TrueNAS13.0-U1 and thinking of switching to TrueNAS Core since it fits my requirements better. I did try the beta at some point and had a couple of issues that i couldn't resolve at the time, so i just went back to CORE because i was just to lazy to figure out what is going on.

To the point:
i'm wondering if it is possible to run multiple instances of the same container image, in my specific case i'm thinking of photoprism, since multi user support is still not available. is this possible, either through ui or via shell?

And another question: is GPU Passthrough to VM's possible in SCALE? i'd love to try running win10 in a vm for occasional CAD work...

thank you for any helpful hints
 

sfatula

Guru
Joined
Jul 5, 2022
Messages
608
Did you ever determine if this was possible (multiple instances)?
 

Heavy

Explorer
Joined
Aug 12, 2021
Messages
57
Did you ever determine if this was possible (multiple instances)?
Yeah you can. Just give the duplicate container a different name, may have to change some ports.
you can have a layout like:
photoprism1
photoprism2

Unless I'm missing something.
 

N20Visuals

Dabbler
Joined
Jan 16, 2021
Messages
21
Hey, sorry for neglecting my own thread here, was on the road for work a couple of days.

Anyway, yes, works flawlessly. I didn't test with built-in containers (so the ones from the official repo or the truecharts repo) but it worked when using the "launch docker image" button and setting up the container manually. i am using host networking so i didn't need to change ports :)
 
Top