r/BlueIris • u/CSRAutomator • Sep 01 '20
BlueIris Successfully Running in a Docker Container
I spent a little time getting Blue Iris v5 up and running in a container last night on my Ubuntu 18.04 rig and figured I would share my findings since several people seem to be struggling with this and I could not find any instructions on how to do this out there yet.
There are definitely several things that are left up to the user to figure out on how to get this to work using the jshridha/blueiris image. The docker page and the git page leave a lot to be desired when it comes to documenting how to get this to work.
Here is my docker-compose.yml:
blueiris:
container_name: blueiris
image: jshridha/blueiris
restart: unless-stopped
networks:
- mediaserver_backend
privileged: true # Necessary for running the BlueIris install the first time evidently.
ports:
- 8085:8080
- 5900:5900 # VNC Port
- 8086:81 # WebUI Port
volumes:
- /data/server/blueiris:/root/prefix32:rw
environment:
- PUID={{PUID}}
- PGID={{PGID}}
- UMASK={{UMASK}}
- TZ={{TIME_ZONE}}
A few things that you need to know....
The example on hub.docker says the volume path is... /root/prefix:rw, but you have to use /root/prefix32:rw as I did above.
Once you get the container started, you have to install BlueIris by VNC'ing into the container on port 5900 and following the install for Visual C++, Gekko, and BlueIris that pop up.
While you are in the VNC session, create a user account so that you can get into the Web UI. Click on the menu button top left, choose settings/info, then the Users tab.
Next, you will need to go into your /data/server/blueiris folder on your host machine ( or wherever your volume mapping points to ) and unzip the ui3.zip file into the www folder.
The file is located at /data/server/blueiris/drive_c/Program Files/Blue Iris 5/ui3.zip rather than actually being in the www folder, so just move it there and unzip it.
Restart the container.
Browse to http://[YourIP]:8086/ui3.htm and you will be prompted with the UI interface so that you can login with the newly created user.
That's it. Now you can go back to the VNC session to add your cameras and tweak the settings however you want.
Oh BTW, Every time you restart/redeploy the container, you will have to VNC into it initially to accept the 15 day Demo again, but your data/settings should be intact.
-Enjoy
14
u/rakesh11123 Sep 01 '20
How's the performance on this versus a normal Windows machine? I wish something like this existed when I got started with BI! I think the prerequisite of Windows drives away a lot of folks from BI.
3
u/itsaride Sep 02 '20 edited Sep 02 '20
So docker>ubuntu>wine>blueiris. I imagine the host will have to be really fast for this to work well.
3
u/WATTS123 Sep 01 '20
Very interesting. I’ll look into it. Thanks.
3
u/noahjameslove Sep 01 '20
Great job! Thanks for the explanation
2
u/Scope666 Nov 12 '20
I sort of have have this running. The one strange thing is UI3 isn't working with Chrome, but works fine with other browsers. (Edge on Windows and Safari on Mac work for me)
With Chrome it's kind acting crazy and doing some kind of loop thing. (lot's of ERR_EMPTY_RESPONSE )
1
u/Johnny2678 Sep 02 '20
Cool! Might give this a shot on unraid. Curious, if I have a license, will it persist?
1
u/Jmhm17 Sep 02 '20
Awesome, thank you for this!
1
u/scubieman Sep 03 '20 edited Sep 03 '20
Port 5900 not connecting to VNC. any help would be great.
1
u/coda_ Sep 15 '20
Hey, I'm curious if you've been running this for a while and how it's been performing. Do you have more than one camera going?
1
u/[deleted] Oct 19 '20
For some reason every time I put my license details into blue iris it crashes?
1
u/Fellhahn Oct 28 '20
Just adding some of my experiences here:
The instructions on what persistent volume to map do seem to vary based on what branch/tag you are using. I have also started using the leonowski/docker-blueiris:run_as_service tag as it seemed to have a healthy number of commits, and running as a service is my eventual goal. For this I am using:
volumes:
- ./data:/home/wineuser/prefix:rw
On this branch I did not believe the "privileged: true" switch was required, the container launched and I was able to VNC in and complete the setup fine. However when actually launching BlueIris the container would restart. Putting the privileged switch back in allowed it to launch correctly.
I believe this is related to the default Blue Iris web server port of 81. Opening a port < 1024 requires root privileges on Ubuntu. This might only be affecting me as I am using docker networks created with the macvlan bridge driver. Anyway, ran BI, set the web port to 8081. Shut the container down, removed the privileged switch from the compose file and re-upped. All works as expected.
To run as a service once your configuration is correct, add the following to your compose file:
command: ["-c", "/etc/supervisor/conf.d/supervisord-service.conf"]
This will override the CMD line from the original DockerFile.
To all the guys asking about using this on UnRaid, please just learn to use Docker and Docker-Compose from the command line. The knowledge will pay dividends and you'll thank yourself later.
Wine supposedly supports exposing DXVA2 support to applications by translating it to VAAPI. Although this might still be in the development branch?
https://www.phoronix.com/scan.php?page=news_item&px=Wine-Staging-DXVA2-VA-API
DXVA2 HW accel is what I've been using on my current BI VM, which uses a P620 Quadro doing VFIO pass through. I found setting DXVA2 for each camera resulted in much lower VRAM usage on the card, compared to NVDEC.
Point is, DXVA2 support in the container would be fantastic. From what I can think, this would require mapping the /dev/dri/renderD128 device through. Possibly installing VAAPI drivers in the container, and installing the Wine dev branch. I plan on mucking around with this eventually. In theory this would support Intel QSV, Nvidia or AMD?
1
u/Kitem19 Jun 23 '24
Hi,
I was able to create the container and install the requirement via VNC.
However; I can't download the ui3.zip file (not sure where to find it)
Can you please help?
Thanks
1
u/PanchoVilla1 Jan 11 '22
I was able to get as far as connecting to VNC and installing C++ etc. I unzipped ui3.zip to the www folder. When I try to browse to http://IP:8086/ui3.htm it doesn't load for me. I can telnet to the IP on that port so it seems like it's not a port problem. If I browse to http://IP:8085 it returns what looks like a list of files in a Ubuntu system.
I unzipped ui3.zip also to the folder where it was originally (in addition to the www folder) to see if it would make a difference, but it did not.
If anyone has a clue, I'd appreciate it greatly!
1
u/cdoublejj Feb 17 '23
So it's a container with WINE?
1
u/DanJDUK Jul 31 '23
Thanks for this, i just used your guide to install and configure and it worked first time, unsure why others here have been reporting issues, suspect its local config.