/var/lib/docker/overlay2/db72dadf047395c178feb0eaedd932b48e283abcaa5a870c0c746bab8ee6f76a: no such file or directory

[root@localhost dockerbase-1804]# docker load -i 18.04-cuda10.0-runtime-nvidia-image.tar

lstat /var/lib/docker/overlay2/db72dadf047395c178feb0eaedd932b48e283abcaa5a870c0c746bab8ee6f76a: no such file or directory

[root@localhost dockerbase-1804]# docker load -i 18.04-cuda10.0-runtime-nvidia-image.tar

lstat /var/lib/docker/overlay2/db72dadf047395c178feb0eaedd932b48e283abcaa5a870c0c746bab8ee6f76a: no such file or directory

载入镜像,报错;重复一次,仍然不行。

解决:docker system prune -a

目的是清除无用的卷,镜像,容器。

[centos@localhost ~]$ sudo docker system prune -a

[sudo] centos 的密码:

WARNING! This will remove:

        - all stopped containers

        - all networks not used by at least one container

        - all images without at least one container associated to them

        - all build cache

Are you sure you want to continue? [y/N] y

Deleted Networks:

facepass_30080_default

facepass_default

minio_net

kk_net

icw_net

ic_net

share_default

license_platform_default

Deleted Images:

untagged: facepass_static:v0.1.8-build081919

deleted: sha256:43ebabf108c04643405d04d208ca8bc4fdf27789bce1d627c70bd3e849e3bb3d

deleted: sha256:0305dca82d061682af9c83104e957e136bb3d25c9e439fd1f4b6c175d01a4ca9

deleted: sha256:49cdddd495f9a21261dbc780f2eea941c4d142feba6afd36e835395b4798c0b9

deleted: sha256:b03f1924034251dc77268a1511d90bbcfe52dbce517fc14412b0d2afa8d68710

deleted: sha256:aa56d3c8a4a3aaca9e40a2ac16a305fe5966450d174d45e655af9ce7e1f560f6

deleted: sha256:8cb0c4247d7d6798963be53eeb0a60761175272cd256edcbe2e36ba61d695c27

deleted: sha256:1b68266b1a4a449936b624f14f4ef64cbc71f975b1abe229d2a85f7ed1dc0594

deleted: sha256:5df2b177165775aade420ff0b7610c34be99fc46b421000e9094049f1723bc06

deleted: sha256:59a6856f439d187f3ce3381d0a6b0816db99cc3d8468bcf8c9d1c39d2071dcff

。。。。。。

再次导入镜像,成功:

[centos@localhost dockerbase-1804]$ docker load -i 18.04-cuda10.0-runtime-nvidia-image.tar 

cc967c529ced: Loading layer [==================================================>]  65.57MB/65.57MB

2c6ac8e5063e: Loading layer [==================================================>]  991.2kB/991.2kB

6c01b5a53aac: Loading layer [==================================================>]  15.87kB/15.87kB

e0b3afb09dc3: Loading layer [==================================================>]  3.072kB/3.072kB

37b9a4b22186: Loading layer [==================================================>]   17.1MB/17.1MB

dd841c774a30: Loading layer [==================================================>]  29.22MB/29.22MB

52ad947270f1: Loading layer [==================================================>]  3.072kB/3.072kB

4e3516398cef: Loading layer [==================================================>]  793.6MB/793.6MB

5349a3faa189: Loading layer [==================================================>]  392.2MB/392.2MB

Loaded image: nvidia/cuda:10.0-cudnn7-runtime

posted @ 2020-09-02 10:19  巴州夜雨  阅读(1210)  评论(0编辑  收藏  举报