dusty-nv / jetson-containers

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

Is it possible to delete layers to create space? (Docker Image not fully built due to running out of space issue) #360

Open HShamimGEHC opened 7 months ago

HShamimGEHC commented 7 months ago

After successfully updating my Xavier AGX and being able to run ./build.sh --list-packages, I got a bit excited and tried to pull the docker stable-diffusion-webui. I did not check to see how much space I needed and I downloaded a bunch of layers before running out of space and the image did not completely download.

What is the proper way to delete/remove some of these layers to get back some of that space?

dusty-nv commented 7 months ago

@HShamimGEHC hmm, firstly you can use docker rmi to remove container images. But it sounds like the image didn't fully download, so it may not be listed. In that case, you can try sudo docker system prune

Or worst case, delete your docker data root dir (the one that is listed under sudo docker info | grep data), but this will delete all your other layers and container images too.