docker load image error: write /usr/local/cuda-11.3/targets/x86 no space on device solution

docker load image error: write /usr/local/cuda-11.3/targets/x86 no space on device solution


Problem Description

When importing the Docker image, an error is docker load < ubuntu16.04.tarreported:

write /usr/local/cuda-11.3/targets/x86 no space on device` 

Cause Analysis:

When encountering this kind of error, it is usually caused by insufficient space in the docker root directory.


solution:

Modify the value of Docker Root Dir so that it points to a directory with larger space.
First, check the root directory of docker

docker info | grep -i "docker root dir"

Usually, /var/lib/docker
then, check the remaining space of the directory

df -hl /var/lib/docker

If the remaining space is insufficient, select a directory with large disk space and move the entire /var/lib/docker directory to the destination path of the data disk (select /home/docker here).

Stop the docker service first

systemctl stop docker

Create a directory with a larger root directory space

mkdir /home/docker

Move the entire /var/lib/docker directory to the destination path of the data disk

mv /var/lib/docker /home/docker

Add soft link

ln -s /home/docker /var/lib/docker

Then start docker

systemctl start docker

That’s all.

Guess you like

Origin blog.csdn.net/qq_39691492/article/details/123960634