Plex Media Server on Docker Swarm, bootstrapped with swarm-bootstrapper.
- Proxmox VE PCIe Passthrough (Nvidia Quadro P2200)
- Ubuntu Server 20.04.3 LTS (Focal Fossa)
- Nvidia Driver installation (see Diesel-Net/ansible-role-ubuntu)
- Nvidia Container Toolkit installation (see Diesel-Net/ansible-role-docker)
- Official Plex Media Server docker image
- Factored-out library (using docker NFSv4 volume)
- Factored-out Plex Media Server configuration
After installing nvidia-docker2
I had to manually configure /etc/docker/daemon.json
to use the nvidia
runtime by default for the host, and then pass the appropriate environment variables, namely NVIDIA_VISIABLE_DEVICES
, and NVIDIA_DRIVER_CAPABILITIES
.
- Docker
- swarmkit #1244
- Passing generic resources to Docker services
- Not applicable and/or pretty much useless if using
docker stack deploy
with compose file format - Probably still applies for OTHER generic resources but I do not think this is the recommended way of doing this for Nvidia specific GPUs nowadays
- Not applicable and/or pretty much useless if using
- Nvidia
- Other
- Super insightful Hack
- Outdated as most of the stuff no longer applies, but helped with understanding the need/how to set
daemon.json
manually
- Outdated as most of the stuff no longer applies, but helped with understanding the need/how to set
- Python on Whale's user guide - Generic Resources on Docker Swarm
- helped me understand generic swarmkit resources, which seemed to be the old "hacky way", but restricts a GPU (or any device) to a single swarm service
- Super insightful Hack
- Accessing GPU's from a Docker Swarm Service
- Outdated or no longer applies, but still insightful