dusty-nv / jetson-containers

Machine Learning Containers for NVIDIA Jetson and JetPack-L4T
MIT License
2.09k stars 435 forks source link

Ugh. Xavier NX Runs out Of Docker Space on "./run.sh $(./autotag text-generation-webui)" #371

Closed DennisFaucher closed 7 months ago

DennisFaucher commented 7 months ago

My newly installed Xavier NX has 11GB free in /. Running "./run.sh $(./autotag text-generation-webui)" Fills up / to 100% before all layers are downloaded and extracted. I have an external SD-Card. Can I move /var/lib/docker to the SD-Card? Thanks.

PrinceP commented 7 months ago

You can.
https://www.digitalocean.com/community/questions/how-to-move-the-default-var-lib-docker-to-another-directory-for-docker-on-linux

DennisFaucher commented 7 months ago

Fixed it. The instructions in this blog post (https://linuxconfig.org/how-to-move-docker-s-default-var-lib-docker-to-another-directory-on-ubuntu-debian-linux) were helpful but the syntax (-g) has changed to (--data-root). My working /lib/systemd/system/docker.service has this change:

ExecStart=/usr/bin/dockerd --data-root /media/dennis/64GB_SD_EXT4/docker -H fd:// --containerd=/run/containerd/containerd.sock

ExecStart=/usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock

DennisFaucher commented 7 months ago

Oh look. It is all explained here. RTFM Dennis :) https://github.com/dusty-nv/jetson-containers/blob/master/docs/setup.md