Installing InvokeAI on Ubuntu using docker for local development

Last updated June 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)


Join my mailing list to get updated whenever I publish a new article.

Thanks for checking out my site!
© 2024 Brian Caffey