For Shinobi I’m running on VMs and I don’t have a discrete graphics card so graphics acceleration isn’t an option for me so I never encountered those problems. I think I did experience a need to increase the number of file handle or something like that. I’d have to go back to my Ansible scripts.
Yes, I always do this unless it causes some problems. I’ve not encountered any problems doing this so far. Often, I’ll also mount /etc/passwd depending on how the container handles the runtime user. Sometimes it has to be run as root and then the container itself moves to another user (e.g. openHAB) so using --user doesn’t really work well.
The biggest problem I’ve encountered tends to be with databases. Originally I had the idea that I’d put all the data on a network mount and since I have a mixed network I chose CIFS (i.e. samba). Unfortunately with a CIFS mount everything has the same permissions and PostgreSQL and InfluxDB like to have rw for their user only for the data files. In the end I moved to storing the data on the host and have a cron job to backup the database to my NAS every night instead. I may move this to a NFS mount at some point but what I have running now seems robust enough.
Thanks! Though I’m by no means a Docker expert. So don’t take anything I say as a best practice.
And just for the record I’m running three VMs with docker containers:
argus: my home automation server
- openHAB
- grafana
- InfluxDB
- Mosquitto
- Portainer Agent
- Grafana Image Renderer
- Shinobi
medusa: my media server
- Guacamole (HTML5 VNC/RDP server, lets me access my machines through the web)
- Guacd (part of Guacamole)
- elasticsearch
- Gogs
- Next Cloud
- Redis
- PostgreSQL
- Plex Media Server
- Calibre
- Portainer Agent
huginn: my virtual desktop
- code-server
- Portainer
I’m still fighting with getting elasticsearch to work with Next Cloud so it’s not really being used. Shinobi is running but I’m not doing anything with it at the moment. My NAS VM just runs OMV and doesn’t run any containers. All four VMs are running on the same ESXi server.