Installing InvokeAI on Ubuntu using docker for local development
последнее обновление: 17 июня 2023 г.
⚠️ This article is a draft and is not yet complete. ⚠️
Mount the hard drive:
sudo mount -t ntfs /dev/sda2 /media/brian/
TODO: mount this drive at startup
Install NVIDIA runtime
apt-get install nvidia-container-runtime
Using Ubuntu 23.04, I did the following:
distribution=ubuntu22.04
curl -s -L https://nvidia.github.io/nvidia-docker/gpgkey | sudo apt-key add - && curl -s -L https://nvidia.github.io/nvidia-docker/$distribution/nvidia-docker.list | sudo tee /etc/apt/sources.list.d/nvidia-docker.list
(There is not official support for 23.04, see here: https://docs.nvidia.com/datacenter/cloud-native/container-toolkit/latest/nvidia-docker.html#installing-on-ubuntu-and-debian)