{"id":39240,"date":"2025-05-23T09:06:06","date_gmt":"2025-05-23T01:06:06","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/39240.html"},"modified":"2025-05-23T09:06:06","modified_gmt":"2025-05-23T01:06:06","slug":"%e7%a6%bb%e7%ba%bf%e6%9c%8d%e5%8a%a1%e5%99%a8%e7%ae%97%e6%b3%95%e9%83%a8%e7%bd%b2%e7%8e%af%e5%a2%83%e9%85%8d%e7%bd%ae","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/39240.html","title":{"rendered":"\u79bb\u7ebf\u670d\u52a1\u5668\u7b97\u6cd5\u90e8\u7f72\u73af\u5883\u914d\u7f6e"},"content":{"rendered":"<p>\u672c\u6587\u5c06\u8be6\u7ec6\u8bb0\u5f55\u6211\u5982\u4f55\u4e3a\u4e00\u53f0\u5168\u65b0\u7684\u79bb\u7ebf\u670d\u52a1\u5668\u914d\u7f6e\u5fc5\u8981\u7684\u8fd0\u884c\u73af\u5883&#xff0c;\u5305\u62ec\u57fa\u7840\u7f16\u8bd1\u5de5\u5177\u3001NVIDIA\u663e\u5361\u9a71\u52a8\u4ee5\u53caNVIDIA-Docker&#xff0c;\u4ee5\u4fbf\u987a\u5229\u90e8\u7f72\u6df1\u5ea6\u5b66\u4e60\u7b97\u6cd5\u3002<\/p>\n<p>\u524d\u63d0\u6761\u4ef6&#xff1a;<\/p>\n<ul>\n<li>\u76ee\u6807\u79bb\u7ebf\u670d\u52a1\u5668\u5df2\u5b89\u88c5\u64cd\u4f5c\u7cfb\u7edf&#xff08;\u672c\u6587\u4ee5Ubuntu 18.04\u4e3a\u4f8b&#xff09;\u3002<\/li>\n<li>Docker \u670d\u52a1\u5df2\u5b89\u88c5\u5e76\u8fd0\u884c\u3002<\/li>\n<li>Docker-Compose \u5df2\u5b89\u88c5\u3002<\/li>\n<\/ul>\n<p>\u6838\u5fc3\u601d\u8def&#xff1a; \u5229\u7528\u4e00\u53f0\u6709\u7f51\u7edc\u7684\u670d\u52a1\u5668&#xff08;\u4e0e\u76ee\u6807\u670d\u52a1\u5668\u64cd\u4f5c\u7cfb\u7edf\u4e00\u81f4\u6216\u517c\u5bb9&#xff09;\u4e0b\u8f7d\u6240\u6709\u9700\u8981\u7684\u8f6f\u4ef6\u5305\u548c\u9a71\u52a8&#xff0c;\u7136\u540e\u5c06\u8fd9\u4e9b\u6587\u4ef6\u62f7\u8d1d\u5230\u79bb\u7ebf\u670d\u52a1\u5668\u8fdb\u884c\u5b89\u88c5\u3002<\/p>\n<hr \/>\n<h3>\u9636\u6bb5\u4e00&#xff1a;\u5728\u7ebf\u670d\u52a1\u5668\u8d44\u6e90\u4e0b\u8f7d<\/h3>\n<p>\u5728\u6709\u7f51\u7edc\u7684\u670d\u52a1\u5668\u4e0a&#xff0c;\u6211\u4eec\u9700\u8981\u4e0b\u8f7d\u4ee5\u4e0b\u51e0\u7c7b\u5173\u952e\u6587\u4ef6&#xff1a;<\/p>\n<li>\u57fa\u7840\u7f16\u8bd1\u73af\u5883\u548c\u4f9d\u8d56\u5e93\u7684 .deb \u5305\u3002<\/li>\n<li>NVIDIA \u663e\u5361\u9a71\u52a8\u7684 .run \u5b89\u88c5\u5305\u3002<\/li>\n<li>NVIDIA-Docker (\u6216 nvidia-container-toolkit) \u7684 .deb \u5305\u3002<\/li>\n<h4>1.1 \u51c6\u5907\u57fa\u7840\u7f16\u8bd1\u73af\u5883\u548c\u4f9d\u8d56\u5e93<\/h4>\n<p>\u4e3a\u4e86\u786e\u4fdd\u79bb\u7ebf\u73af\u5883\u7684\u7eaf\u51c0\u4e0e\u4e00\u81f4\u6027&#xff0c;\u6211\u9009\u62e9\u4f7f\u7528Docker\u5bb9\u5668&#xff08;\u57fa\u4e8eubuntu:18.04&#xff09;\u6765\u4e0b\u8f7d\u57fa\u7840\u4f9d\u8d56\u5305\u3002\u8fd9\u6837\u505a\u7684\u597d\u5904\u662f\u53ef\u4ee5\u6a21\u62df\u76ee\u6807\u670d\u52a1\u5668\u7684\u64cd\u4f5c\u7cfb\u7edf\u73af\u5883&#xff0c;\u51cf\u5c11\u517c\u5bb9\u6027\u95ee\u9898\u3002<\/p>\n<p>\u4ee5\u4e0b\u662f\u6211\u4f7f\u7528\u7684\u547d\u4ee4\u5e8f\u5217&#xff1a;<\/p>\n<p>\u9996\u5148&#xff0c;\u62c9\u53d6\u5b98\u65b9\u7684Ubuntu 18.04\u955c\u50cf&#xff1a;<\/p>\n<p><span class=\"token function\">docker<\/span> pull ubuntu:18.04<\/p>\n<p>\u7136\u540e&#xff0c;\u8fd0\u884c\u4e00\u4e2a\u5bb9\u5668&#xff0c;\u5e76\u5c06\u5bbf\u4e3b\u673a\u7684\u4e00\u4e2a\u76ee\u5f55&#xff08;\u4f8b\u5982 \/path\/on\/host\/for_debs&#xff09;\u6302\u8f7d\u5230\u5bb9\u5668\u7684 \/downloaded_debs \u76ee\u5f55&#xff0c;\u7528\u4e8e\u5b58\u653e\u4e0b\u8f7d\u7684 .deb \u5305&#xff1a;<\/p>\n<p><span class=\"token function\">docker<\/span> run <span class=\"token parameter variable\">-it<\/span> <span class=\"token parameter variable\">&#8211;rm<\/span> <span class=\"token punctuation\">\\\\<\/span><br \/>\n    <span class=\"token parameter variable\">-v<\/span> \/path\/on\/host\/for_debs:\/downloaded_debs <span class=\"token punctuation\">\\\\<\/span><br \/>\n    ubuntu:18.04 \/bin\/bash<\/p>\n<p>\u8fdb\u5165\u5bb9\u5668\u540e&#xff0c;\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4\u66f4\u65b0apt\u7f13\u5b58&#xff0c;\u5b89\u88c5\u4e00\u4e9b\u4e0b\u8f7d\u5de5\u5177&#xff0c;\u7136\u540e\u4ec5\u4e0b\u8f7d\u6211\u4eec\u9700\u8981\u7684\u5305\u5230\u672c\u5730\u7f13\u5b58&#xff0c;\u6700\u540e\u518d\u62f7\u8d1d\u51fa\u6765&#xff1a;<\/p>\n<p><span class=\"token comment\"># \u5728\u5bb9\u5668\u5185\u90e8\u6267\u884c&#xff1a;<\/span><br \/>\n<span class=\"token function\">apt-get<\/span> update<br \/>\n<span class=\"token function\">apt-get<\/span> <span class=\"token function\">install<\/span> <span class=\"token parameter variable\">-y<\/span> apt-utils ca-certificates <span class=\"token comment\"># ca-certificates \u7528\u4e8eHTTPS\u4e0b\u8f7d<\/span><\/p>\n<p><span class=\"token comment\"># \u6e05\u7406\u65e7\u7684\u7f13\u5b58&#xff08;\u53ef\u9009&#xff0c;\u4f46\u63a8\u8350&#xff09;<\/span><br \/>\n<span class=\"token function\">apt-get<\/span> clean<\/p>\n<p><span class=\"token comment\"># \u4ec5\u4e0b\u8f7d\u6307\u5b9a\u7684\u4f9d\u8d56\u5305\u53ca\u5176\u6240\u6709\u4f9d\u8d56\u9879&#xff0c;\u4e0d\u8fdb\u884c\u5b89\u88c5<\/span><br \/>\n<span class=\"token comment\"># \u6ce8\u610f&#xff1a;\u8fd9\u91cc\u7684\u5305\u5217\u8868\u975e\u5e38\u8be6\u7ec6&#xff0c;\u662f\u6839\u636e\u9879\u76ee\u9700\u6c42\u548c\u9a71\u52a8\u7f16\u8bd1\u53ef\u80fd\u9700\u8981\u7684\u4f9d\u8d56\u68b3\u7406\u7684<\/span><br \/>\n<span class=\"token comment\"># \u5b9e\u9645\u64cd\u4f5c\u4e2d&#xff0c;\u60a8\u53ef\u80fd\u9700\u8981\u6839\u636e\u81ea\u5df1\u7684\u9700\u6c42\u8c03\u6574\u8fd9\u4e2a\u5217\u8868<\/span><br \/>\n<span class=\"token function\">apt-get<\/span> <span class=\"token parameter variable\">&#8211;reinstall<\/span> <span class=\"token function\">install<\/span> &#8211;download-only <span class=\"token punctuation\">\\\\<\/span><br \/>\n    build-essential <span class=\"token punctuation\">\\\\<\/span><br \/>\n    gcc <span class=\"token punctuation\">\\\\<\/span><br \/>\n    g&#043;&#043; <span class=\"token punctuation\">\\\\<\/span><br \/>\n    g&#043;&#043;-7 <span class=\"token punctuation\">\\\\<\/span><br \/>\n    <span class=\"token function\">make<\/span> <span class=\"token punctuation\">\\\\<\/span><br \/>\n    dpkg-dev <span class=\"token punctuation\">\\\\<\/span><br \/>\n    libdpkg-perl<span class=\"token operator\">&#061;<\/span><span class=\"token number\">1.19<\/span>.0.5ubuntu2.4 <span class=\"token punctuation\">\\\\<\/span><br \/>\n    <span class=\"token assign-left variable\">binutils<\/span><span class=\"token operator\">&#061;<\/span><span class=\"token number\">2.30<\/span>-21ubuntu1~18.04.9 <span class=\"token punctuation\">\\\\<\/span><br \/>\n    binutils-common<span class=\"token operator\">&#061;<\/span><span class=\"token number\">2.30<\/span>-21ubuntu1~18.04.9 <span class=\"token punctuation\">\\\\<\/span><br \/>\n    <span class=\"token assign-left variable\">libbinutils<\/span><span class=\"token operator\">&#061;<\/span><span class=\"token number\">2.30<\/span>-21ubuntu1~18.04.9 <span class=\"token punctuation\">\\\\<\/span><br \/>\n    binutils-x86-64-linux-gnu<span class=\"token operator\">&#061;<\/span><span class=\"token number\">2.30<\/span>-21ubuntu1~18.04.9 <span class=\"token punctuation\">\\\\<\/span><br \/>\n    gcc-7 <span class=\"token punctuation\">\\\\<\/span><br \/>\n    libgcc-7-dev<span class=\"token operator\">&#061;<\/span><span class=\"token number\">7.5<\/span>.0-3ubuntu1~18.04 <span class=\"token punctuation\">\\\\<\/span><br \/>\n    cpp-7 <span class=\"token punctuation\">\\\\<\/span><br \/>\n    libstdc&#043;&#043;-7-dev<span class=\"token operator\">&#061;<\/span><span class=\"token number\">7.5<\/span>.0-3ubuntu1~18.04 <span class=\"token punctuation\">\\\\<\/span><br \/>\n    libitm1 <span class=\"token punctuation\">\\\\<\/span><br \/>\n    libatomic1 <span class=\"token punctuation\">\\\\<\/span><br \/>\n    libasan4 <span class=\"token punctuation\">\\\\<\/span><br \/>\n    liblsan0 <span class=\"token punctuation\">\\\\<\/span><br \/>\n    libtsan0 <span class=\"token punctuation\">\\\\<\/span><br \/>\n    libubsan0 <span class=\"token punctuation\">\\\\<\/span><br \/>\n    libcilkrts5 <span class=\"token punctuation\">\\\\<\/span><br \/>\n    libmpx2 <span class=\"token punctuation\">\\\\<\/span><br \/>\n    libquadmath0 <span class=\"token punctuation\">\\\\<\/span><br \/>\n    libc6-dev<span class=\"token operator\">&#061;<\/span><span class=\"token number\">2.27<\/span>-3ubuntu1.6 <span class=\"token punctuation\">\\\\<\/span><br \/>\n    <span class=\"token assign-left variable\">libc6<\/span><span class=\"token operator\">&#061;<\/span><span class=\"token number\">2.27<\/span>-3ubuntu1.6 <span class=\"token punctuation\">\\\\<\/span><br \/>\n    libc-dev-bin<span class=\"token operator\">&#061;<\/span><span class=\"token number\">2.27<\/span>-3ubuntu1.6 <span class=\"token punctuation\">\\\\<\/span><br \/>\n    linux-libc-dev <span class=\"token punctuation\">\\\\<\/span><br \/>\n    linux-headers-5.4.0-150-generic <span class=\"token punctuation\">\\\\<\/span><br \/>\n    linux-hwe-5.4-headers-5.4.0-150 <span class=\"token punctuation\">\\\\<\/span><br \/>\n    <span class=\"token assign-left variable\">perl<\/span><span class=\"token operator\">&#061;<\/span><span class=\"token number\">5.26<\/span>.1-6ubuntu0.7 <span class=\"token punctuation\">\\\\<\/span><br \/>\n    perl-base<span class=\"token operator\">&#061;<\/span><span class=\"token number\">5.26<\/span>.1-6ubuntu0.7 <span class=\"token punctuation\">\\\\<\/span><br \/>\n    <span class=\"token assign-left variable\">libperl5.26<\/span><span class=\"token operator\">&#061;<\/span><span class=\"token number\">5.26<\/span>.1-6ubuntu0.7 <span class=\"token punctuation\">\\\\<\/span><br \/>\n    perl-modules-5.26<\/p>\n<p><span class=\"token comment\"># \u5c06\u4e0b\u8f7d\u7684 .deb \u6587\u4ef6\u4eceapt\u7f13\u5b58\u590d\u5236\u5230\u6211\u4eec\u6302\u8f7d\u7684\u76ee\u5f55<\/span><br \/>\n<span class=\"token function\">cp<\/span> \/var\/cache\/apt\/archives\/*.deb \/downloaded_debs\/<\/p>\n<p><span class=\"token comment\"># \u9000\u51fa\u5bb9\u5668<\/span><br \/>\n<span class=\"token builtin class-name\">exit<\/span><\/p>\n<p>\u6267\u884c\u5b8c\u6bd5\u540e&#xff0c;\u6240\u6709\u5fc5\u9700\u7684 .deb \u5305\u90fd\u5df2\u4fdd\u5b58\u5728\u5bbf\u4e3b\u673a\u7684 \/path\/on\/host\/for_debs \u76ee\u5f55\u4e2d\u3002<\/p>\n<p>\u6ce8\u610f&#xff1a;linux-headers-5.4.0-150-generic \u548c linux-hwe-5.4-headers-5.4.0-150 \u662f\u7279\u5b9a\u5185\u6838\u7248\u672c\u7684\u5934\u6587\u4ef6\u3002\u4f60\u9700\u8981\u6839\u636e\u4f60\u79bb\u7ebf\u670d\u52a1\u5668\u7684\u5185\u6838\u7248\u672c (uname -r) \u4e0b\u8f7d\u5bf9\u5e94\u7684\u5934\u6587\u4ef6\u3002\u5982\u679c\u5728\u7ebf\u670d\u52a1\u5668\u7684\u5185\u6838\u7248\u672c\u4e0e\u79bb\u7ebf\u670d\u52a1\u5668\u4e0d\u540c&#xff0c;\u4f60\u53ef\u80fd\u9700\u8981\u4e34\u65f6\u4e0b\u8f7d\u5bf9\u5e94\u7248\u672c\u7684\u5934\u6587\u4ef6\u5305&#xff0c;\u6216\u8005\u5728Docker\u5bb9\u5668\u5185\u901a\u8fc7\u4fee\u6539\u6e90\u7684\u65b9\u5f0f\u5c1d\u8bd5\u83b7\u53d6\u7279\u5b9a\u7248\u672c\u7684\u5185\u6838\u5934\u6587\u4ef6\u5305\u3002\u6700\u7a33\u59a5\u7684\u65b9\u5f0f\u662f\u786e\u4fdd\u5728\u7ebf\u4e0b\u8f7d\u73af\u5883\u7684\u5185\u6838\u6216\u53ef\u83b7\u53d6\u7684\u5305\u7248\u672c\u4e0e\u79bb\u7ebf\u76ee\u6807\u4e00\u81f4\u3002<\/p>\n<h4>1.2 \u4e0b\u8f7d NVIDIA \u663e\u5361\u9a71\u52a8 &#x1f4e6;<\/h4>\n<p>\u8bbf\u95ee NVIDIA\u5b98\u65b9\u9a71\u52a8\u4e0b\u8f7d\u9875\u9762&#xff0c;\u6839\u636e\u4f60\u670d\u52a1\u5668\u7684\u663e\u5361\u578b\u53f7\u548c\u64cd\u4f5c\u7cfb\u7edf&#xff08;Linux 64-bit&#xff09;\u9009\u62e9\u5408\u9002\u7684\u9a71\u52a8\u7248\u672c&#xff0c;\u5e76\u4e0b\u8f7d .run \u6587\u4ef6\u3002\u4f8b\u5982 NVIDIA-Linux-x86_64-xxx.xx.xx.run\u3002\u5c06\u5176\u4fdd\u5b58\u5728\u4e4b\u524d\u51c6\u5907\u7684 \/path\/on\/host\/for_debs \u76ee\u5f55&#xff08;\u6216\u8005\u4e00\u4e2a\u4e13\u95e8\u5b58\u653e\u9a71\u52a8\u7684\u76ee\u5f55&#xff09;\u4e2d\u3002<\/p>\n<h4>1.3 \u4e0b\u8f7d NVIDIA-Docker \u76f8\u5173\u5305 &#x1f433;<\/h4>\n<p>NVIDIA-Docker \u5141\u8bb8 Docker \u5bb9\u5668\u76f4\u63a5\u8bbf\u95ee\u5bbf\u4e3b\u673a\u7684 GPU\u3002\u73b0\u5728\u63a8\u8350\u4f7f\u7528 nvidia-container-toolkit\u3002 \u5728\u6709\u7f51\u7edc\u7684Ubuntu 18.04\u670d\u52a1\u5668\u4e0a\u6267\u884c\u4ee5\u4e0b\u6b65\u9aa4\u6765\u4e0b\u8f7d nvidia-docker2 (\u6216 nvidia-container-toolkit) \u53ca\u5176\u4f9d\u8d56&#xff1a;<\/p>\n<p><span class=\"token comment\"># \u6dfb\u52a0 NVIDIA Docker \u7684\u8f6f\u4ef6\u6e90 (\u5728\u6709\u7f51\u7edc\u7684\u673a\u5668\u4e0a)<\/span><br \/>\n<span class=\"token function\">curl<\/span> <span class=\"token parameter variable\">-s<\/span> <span class=\"token parameter variable\">-L<\/span> <span class=\"token punctuation\">[<\/span>https:\/\/nvidia.github.io\/nvidia-docker\/gpgkey<span class=\"token punctuation\">]<\/span><span class=\"token punctuation\">(<\/span>https:\/\/nvidia.github.io\/nvidia-docker\/gpgkey<span class=\"token punctuation\">)<\/span> <span class=\"token operator\">|<\/span> <span class=\"token function\">sudo<\/span> apt-key <span class=\"token function\">add<\/span> &#8211;<br \/>\n<span class=\"token assign-left variable\">distribution<\/span><span class=\"token operator\">&#061;<\/span><span class=\"token variable\"><span class=\"token variable\">$(<\/span><span class=\"token builtin class-name\">.<\/span> \/etc\/os-release<span class=\"token punctuation\">;<\/span><span class=\"token builtin class-name\">echo<\/span> $ID$VERSION_ID<span class=\"token variable\">)<\/span><\/span><br \/>\n<span class=\"token function\">curl<\/span> <span class=\"token parameter variable\">-s<\/span> <span class=\"token parameter variable\">-L<\/span> <span class=\"token punctuation\">[<\/span>https:\/\/nvidia.github.io\/nvidia-docker\/<span class=\"token variable\">$distribution<\/span>\/nvidia-docker.list<span class=\"token punctuation\">]<\/span><span class=\"token punctuation\">(<\/span>https:\/\/nvidia.github.io\/nvidia-docker\/<span class=\"token variable\">$distribution<\/span>\/nvidia-docker.list<span class=\"token punctuation\">)<\/span> <span class=\"token operator\">|<\/span> <span class=\"token function\">sudo<\/span> <span class=\"token function\">tee<\/span> \/etc\/apt\/sources.list.d\/nvidia-docker.list<\/p>\n<p><span class=\"token function\">sudo<\/span> <span class=\"token function\">apt-get<\/span> update<\/p>\n<p><span class=\"token comment\"># \u4ec5\u4e0b\u8f7d nvidia-docker2 \u53ca\u5176\u4f9d\u8d56 (\u65e7\u7248&#xff0c;\u4f46\u6709\u4e9b\u73af\u5883\u53ef\u80fd\u4ecd\u9700)<\/span><br \/>\n<span class=\"token comment\"># sudo apt-get install &#8211;download-only -y nvidia-docker2<\/span><\/p>\n<p><span class=\"token comment\"># \u63a8\u8350\u4e0b\u8f7d nvidia-container-toolkit (\u65b0\u7248)<\/span><br \/>\n<span class=\"token function\">sudo<\/span> <span class=\"token function\">apt-get<\/span> <span class=\"token function\">install<\/span> &#8211;download-only <span class=\"token parameter variable\">-y<\/span> nvidia-container-toolkit<\/p>\n<p>\u4e0b\u8f7d\u5b8c\u6210\u540e&#xff0c;\u76f8\u5173\u7684 .deb \u6587\u4ef6\u4f1a\u5b58\u653e\u5728 \/var\/cache\/apt\/archives\/ \u76ee\u5f55\u4e0b\u3002\u5c06\u8fd9\u4e9b nvidia-docker2 \u6216 nvidia-container-toolkit \u76f8\u5173\u7684 .deb \u5305\u4e5f\u590d\u5236\u5230\u4f60\u7684 \/path\/on\/host\/for_debs \u76ee\u5f55\u4e2d\u3002<\/p>\n<p>\u81f3\u6b64&#xff0c;\u6240\u6709\u9700\u8981\u7684\u79bb\u7ebf\u5b89\u88c5\u5305\u90fd\u5df2\u51c6\u5907\u5c31\u7eea\u3002<\/p>\n<h3>\u9636\u6bb5\u4e8c&#xff1a;\u79bb\u7ebf\u670d\u52a1\u5668\u5b89\u88c5<\/h3>\n<p>\u73b0\u5728&#xff0c;\u5c06\u5728\u7ebf\u670d\u52a1\u5668\u4e0a \/path\/on\/host\/for_debs \u76ee\u5f55&#xff08;\u6216\u5176\u4ed6\u4f60\u5b58\u653e\u6240\u6709\u4e0b\u8f7d\u6587\u4ef6\u7684\u76ee\u5f55&#xff09;\u4e2d\u7684\u6240\u6709\u5185\u5bb9&#xff08;\u5305\u62ec\u57fa\u7840\u4f9d\u8d56\u7684 .deb \u6587\u4ef6\u5939\u3001NVIDIA\u9a71\u52a8 .run \u6587\u4ef6\u3001nvidia-docker \u7684 .deb \u5305&#xff09;\u901a\u8fc7U\u76d8\u3001\u79fb\u52a8\u786c\u76d8\u6216\u5176\u4ed6\u65b9\u5f0f\u4f20\u8f93\u5230\u76ee\u6807\u79bb\u7ebf\u670d\u52a1\u5668\u4e0a\u3002\u5047\u8bbe\u6211\u4eec\u628a\u6240\u6709\u6587\u4ef6\u90fd\u653e\u5728\u4e86\u79bb\u7ebf\u670d\u52a1\u5668\u7684 \/opt\/offline_packages \u76ee\u5f55\u4e0b\u3002<\/p>\n<h4>2.1 \u5b89\u88c5\u57fa\u7840\u7f16\u8bd1\u73af\u5883\u548c\u4f9d\u8d56\u5e93<\/h4>\n<p>\u8fdb\u5165\u5b58\u653e .deb \u5305\u7684\u76ee\u5f55&#xff0c;\u5e76\u4f7f\u7528 dpkg \u8fdb\u884c\u5b89\u88c5&#xff1a;<\/p>\n<p><span class=\"token builtin class-name\">cd<\/span> \/opt\/offline_packages\/debs_from_ubuntu_container <span class=\"token comment\"># \u8fd9\u662f\u4e4b\u524d\u4e0b\u8f7d\u7684\u57fa\u7840\u4f9d\u8d56<\/span><br \/>\n<span class=\"token function\">sudo<\/span> dpkg <span class=\"token parameter variable\">-i<\/span> *.deb<\/p>\n<p>\u5982\u679c\u5728\u6267\u884c dpkg -i \u65f6\u9047\u5230\u4f9d\u8d56\u95ee\u9898&#xff0c;\u53ef\u4ee5\u5c1d\u8bd5\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4&#xff0c;\u5b83\u4f1a\u5c1d\u8bd5\u4f7f\u7528\u5f53\u524d\u76ee\u5f55\u4e0b\u5df2\u6709\u7684\u5305\u6765\u89e3\u51b3\u8fd9\u4e9b\u4f9d\u8d56\u5173\u7cfb&#xff1a;<\/p>\n<p><span class=\"token function\">sudo<\/span> <span class=\"token function\">apt-get<\/span> <span class=\"token parameter variable\">-f<\/span> <span class=\"token function\">install<\/span><\/p>\n<p>\u7531\u4e8e\u662f\u79bb\u7ebf\u73af\u5883&#xff0c;apt-get -f install \u53ea\u6709\u5728\u6240\u6709\u5fc5\u9700\u7684\u4f9d\u8d56\u5305\u90fd\u5df2\u7ecf\u88ab dpkg -i \u201c\u77e5\u6653\u201d&#xff08;\u5373\u5c1d\u8bd5\u5b89\u88c5\u8fc7\u6216\u5df2\u89e3\u5305&#xff09;\u5e76\u4e14\u8fd9\u4e9b\u5305\u786e\u5b9e\u5b58\u5728\u4e8e\u672c\u5730\u65f6\u624d\u53ef\u80fd\u6210\u529f\u89e3\u51b3\u95ee\u9898\u3002\u5982\u679c\u4f9d\u7136\u62a5\u9519&#xff0c;\u8bf4\u660e\u4f60\u4e0b\u8f7d\u7684\u5305\u4e0d\u5168&#xff0c;\u9700\u8981\u56de\u5230\u9636\u6bb5\u4e00\u8865\u5145\u4e0b\u8f7d\u7f3a\u5931\u7684\u4f9d\u8d56\u3002<\/p>\n<h4>2.2 \u5b89\u88c5 NVIDIA \u663e\u5361\u9a71\u52a8<\/h4>\n<li>\n<p>\u7981\u7528 Nouveau \u9a71\u52a8&#xff1a;Nouveau \u662f\u5f00\u6e90\u7684 NVIDIA \u9a71\u52a8&#xff0c;\u4e0e\u5b98\u65b9\u9a71\u52a8\u51b2\u7a81\u3002 \u521b\u5efa\u4e00\u4e2a\u6587\u4ef6 \/etc\/modprobe.d\/blacklist-nouveau.conf&#xff1a;<\/p>\n<p> <span class=\"token function\">sudo<\/span> <span class=\"token function\">nano<\/span> \/etc\/modprobe.d\/blacklist-nouveau.conf<\/p>\n<p>\u6dfb\u52a0\u4ee5\u4e0b\u5185\u5bb9&#xff1a;<\/p>\n<p> blacklist nouveau<br \/>\noptions nouveau modeset&#061;0<\/p>\n<p>\u66f4\u65b0 initramfs \u5e76\u91cd\u542f&#xff1a;<\/p>\n<p> <span class=\"token function\">sudo<\/span> update-initramfs <span class=\"token parameter variable\">-u<\/span><br \/>\n<span class=\"token function\">sudo<\/span> <span class=\"token function\">reboot<\/span><\/p>\n<p>\u91cd\u542f\u540e&#xff0c;\u9a8c\u8bc1 Nouveau \u662f\u5426\u5df2\u7981\u7528&#xff1a;<\/p>\n<p> lsmod <span class=\"token operator\">|<\/span> <span class=\"token function\">grep<\/span> nouveau<\/p>\n<p>\u5982\u679c\u6ca1\u6709\u4efb\u4f55\u8f93\u51fa&#xff0c;\u5219\u8868\u793a\u7981\u7528\u6210\u529f\u3002<\/p>\n<\/li>\n<li>\n<p>\u5b89\u88c5\u9a71\u52a8&#xff1a; \u7ed9\u9a71\u52a8\u6587\u4ef6\u6267\u884c\u6743\u9650&#xff0c;\u5e76\u8fd0\u884c\u5b89\u88c5\u7a0b\u5e8f\u3002<\/p>\n<p> <span class=\"token builtin class-name\">cd<\/span> \/opt\/offline_packages <span class=\"token comment\"># \u5047\u8bbe .run \u6587\u4ef6\u5728\u6b64<\/span><br \/>\n<span class=\"token function\">sudo<\/span> <span class=\"token function\">chmod<\/span> &#043;x NVIDIA-Linux-x86_64-xxx.xx.xx.run<br \/>\n<span class=\"token function\">sudo<\/span> .\/NVIDIA-Linux-x86_64-xxx.xx.xx.run &#8211;no-x-check &#8211;no-nouveau-check &#8211;no-opengl-files<\/p>\n<ul>\n<li>&#8211;no-x-check: \u4e0d\u68c0\u67e5X\u670d\u52a1\u72b6\u6001&#xff08;\u670d\u52a1\u5668\u901a\u5e38\u6ca1\u6709X&#xff09;\u3002<\/li>\n<li>&#8211;no-nouveau-check: \u518d\u6b21\u786e\u8ba4\u4e0d\u68c0\u67e5nouveau&#xff08;\u6211\u4eec\u5df2\u7ecf\u7981\u7528\u4e86&#xff09;\u3002<\/li>\n<li>&#8211;no-opengl-files: \u4ec5\u5b89\u88c5\u9a71\u52a8&#xff0c;\u4e0d\u5b89\u88c5OpenGL\u5e93&#xff08;\u670d\u52a1\u5668\u901a\u5e38\u4e0d\u9700\u8981&#xff0c;\u4e14\u53ef\u80fd\u4e0e\u73b0\u6709mesa\u5e93\u51b2\u7a81&#xff09;\u3002<\/li>\n<\/ul>\n<p>\u6309\u7167\u63d0\u793a\u5b8c\u6210\u5b89\u88c5\u3002\u901a\u5e38\u9700\u8981\u63a5\u53d7\u8bb8\u53ef\u534f\u8bae&#xff0c;\u53ef\u80fd\u4f1a\u8be2\u95ee\u662f\u5426\u6ce8\u518cDKMS&#xff08;\u63a8\u8350\u9009\u62e9\u662f&#xff0c;\u8fd9\u6837\u5185\u6838\u66f4\u65b0\u540e\u9a71\u52a8\u4f1a\u81ea\u52a8\u91cd\u65b0\u7f16\u8bd1&#xff09;\u3002<\/p>\n<\/li>\n<li>\n<p>\u9a8c\u8bc1\u9a71\u52a8\u5b89\u88c5&#xff1a;<\/p>\n<p> nvidia-smi<\/p>\n<p>\u5982\u679c\u6210\u529f\u5b89\u88c5&#xff0c;\u6b64\u547d\u4ee4\u4f1a\u663e\u793a\u663e\u5361\u4fe1\u606f\u548c\u9a71\u52a8\u7248\u672c\u3002<\/p>\n<\/li>\n<h4>2.3 \u5b89\u88c5\u548c\u914d\u7f6e NVIDIA-Docker<\/h4>\n<li>\n<p>\u5b89\u88c5 nvidia-docker2 \/ nvidia-container-toolkit \u5305&#xff1a; \u8fdb\u5165\u5b58\u653e nvidia-docker \u76f8\u5173 .deb \u5305\u7684\u76ee\u5f55&#xff1a;<\/p>\n<p> <span class=\"token builtin class-name\">cd<\/span> \/opt\/offline_packages\/nvidia_docker_debs <span class=\"token comment\"># \u5047\u8bbe\u4f60\u628anvidia-docker\u7684deb\u5305\u653e\u5728\u8fd9\u91cc<\/span><br \/>\n<span class=\"token function\">sudo<\/span> dpkg <span class=\"token parameter variable\">-i<\/span> *.deb<\/p>\n<p>\u540c\u6837&#xff0c;\u5982\u679c\u9047\u5230\u4f9d\u8d56\u95ee\u9898&#xff0c;\u53ef\u4ee5\u5c1d\u8bd5 sudo apt-get -f install&#xff0c;\u524d\u63d0\u662f\u76f8\u5173\u4f9d\u8d56\u4e5f\u5df2\u62f7\u8d1d\u8fc7\u6765\u3002<\/p>\n<\/li>\n<li>\n<p>\u91cd\u542f Docker \u670d\u52a1&#xff1a; \u4e3a\u4e86\u8ba9 Docker \u8bc6\u522b\u65b0\u7684 NVIDIA runtime&#xff0c;\u9700\u8981\u91cd\u542f Docker \u670d\u52a1\u3002<\/p>\n<p> <span class=\"token function\">sudo<\/span> systemctl restart <span class=\"token function\">docker<\/span><\/p>\n<p>\u6216\u8005\u5728\u6ca1\u6709 systemctl \u7684\u65e7\u7cfb\u7edf\u4e0a&#xff1a;<\/p>\n<p> <span class=\"token function\">sudo<\/span> <span class=\"token function\">service<\/span> <span class=\"token function\">docker<\/span> restart\n <\/li>\n<li>\n<p>\u6d4b\u8bd5 NVIDIA-Docker&#xff1a; \u8fd0\u884c\u4e00\u4e2a\u57fa\u4e8e CUDA \u7684 Docker \u955c\u50cf\u6765\u6d4b\u8bd5 GPU \u662f\u5426\u80fd\u5728\u5bb9\u5668\u5185\u88ab\u8bbf\u95ee&#xff1a;<\/p>\n<p> <span class=\"token function\">docker<\/span> run <span class=\"token parameter variable\">&#8211;rm<\/span> <span class=\"token parameter variable\">&#8211;gpus<\/span> all nvidia\/cuda:11.0.3-base-ubuntu18.04 nvidia-smi<\/p>\n<p>(\u8bf7\u6839\u636e\u4f60\u5b89\u88c5\u7684\u9a71\u52a8\u7248\u672c&#xff0c;\u9009\u62e9\u4e00\u4e2a\u517c\u5bb9\u7684 nvidia\/cuda \u955c\u50cf\u6807\u7b7e\u3002\u4f8b\u5982&#xff0c;\u5982\u679c\u4f60\u7684\u9a71\u52a8\u662f 470.xx&#xff0c;CUDA 11.4 \u53ef\u80fd\u662f\u4e00\u4e2a\u597d\u9009\u62e9&#xff0c;\u5bf9\u5e94\u7684\u955c\u50cf\u662f nvidia\/cuda:11.4.0-base-ubuntu18.04 \u7b49\u3002)<\/p>\n<p>\u5982\u679c\u6b64\u547d\u4ee4\u5728\u5bb9\u5668\u5185\u6210\u529f\u8f93\u51fa\u4e86 nvidia-smi \u7684\u4fe1\u606f&#xff0c;\u90a3\u4e48\u606d\u559c\u4f60&#xff0c;NVIDIA-Docker \u914d\u7f6e\u6210\u529f&#xff01;<\/p>\n<\/li>\n<h4>\u603b\u7ed3 &#x1f3c1;<\/h4>\n<p>\u901a\u8fc7\u4ee5\u4e0a\u6b65\u9aa4&#xff0c;\u6211\u4eec\u6210\u529f\u5730\u5728\u4e00\u53f0\u65e0\u7f51\u7edc\u670d\u52a1\u5668\u4e0a\u914d\u7f6e\u4e86\u57fa\u7840\u7f16\u8bd1\u73af\u5883\u3001\u5b89\u88c5\u4e86 NVIDIA \u663e\u5361\u9a71\u52a8&#xff0c;\u5e76\u914d\u7f6e\u597d\u4e86 NVIDIA-Docker\u3002\u73b0\u5728&#xff0c;\u8fd9\u53f0\u670d\u52a1\u5668\u5df2\u7ecf\u51c6\u5907\u5c31\u7eea&#xff0c;\u53ef\u4ee5\u5f00\u59cb\u90e8\u7f72\u548c\u8fd0\u884c\u9700\u8981 GPU \u52a0\u901f\u7684\u7b97\u6cd5\u5e94\u7528\u4e86\u3002\u867d\u7136\u79bb\u7ebf\u73af\u5883\u7684\u914d\u7f6e\u8fc7\u7a0b\u76f8\u5bf9\u7e41\u7410&#xff0c;\u4f46\u53ea\u8981\u7ec6\u5fc3\u51c6\u5907&#xff0c;\u6309\u90e8\u5c31\u73ed\u5730\u64cd\u4f5c&#xff0c;\u5c31\u80fd\u987a\u5229\u5b8c\u6210\u3002\u5e0c\u671b\u8fd9\u7bc7\u8bb0\u5f55\u80fd\u4e3a\u6709\u7c7b\u4f3c\u9700\u6c42\u7684\u4eba\u63d0\u4f9b\u4e00\u4e9b\u53c2\u8003\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb738\u6b21\uff0c\u70b9\u8d5e20\u6b21\uff0c\u6536\u85cf12\u6b21\u3002\u901a\u8fc7\u4ee5\u4e0a\u6b65\u9aa4\uff0c\u6211\u4eec\u6210\u529f\u5730\u5728\u4e00\u53f0\u65e0\u7f51\u7edc\u670d\u52a1\u5668\u4e0a\u914d\u7f6e\u4e86\u57fa\u7840\u7f16\u8bd1\u73af\u5883\u3001\u5b89\u88c5\u4e86 NVIDIA \u663e\u5361\u9a71\u52a8\uff0c\u5e76\u914d\u7f6e\u597d\u4e86 NVIDIA-Docker\u3002\u73b0\u5728\uff0c\u8fd9\u53f0\u670d\u52a1\u5668\u5df2\u7ecf\u51c6\u5907\u5c31\u7eea\uff0c\u53ef\u4ee5\u5f00\u59cb\u90e8\u7f72\u548c\u8fd0\u884c\u9700\u8981 GPU \u52a0\u901f\u7684\u7b97\u6cd5\u5e94\u7528\u4e86\u3002\u867d\u7136\u79bb\u7ebf\u73af\u5883\u7684\u914d\u7f6e\u8fc7\u7a0b\u76f8\u5bf9\u7e41\u7410\uff0c\u4f46\u53ea\u8981\u7ec6\u5fc3\u51c6\u5907\uff0c\u6309\u90e8\u5c31\u73ed\u5730\u64cd\u4f5c\uff0c\u5c31\u80fd\u987a\u5229\u5b8c\u6210\u3002\u5e0c\u671b\u8fd9\u7bc7\u8bb0\u5f55\u80fd\u4e3a\u6709\u7c7b\u4f3c\u9700\u6c42\u7684\u4eba\u63d0\u4f9b\u4e00\u4e9b\u53c2\u8003\u3002<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[3505,43,44],"topic":[],"class_list":["post-39240","post","type-post","status-publish","format-standard","hentry","category-server","tag-3505","tag-43","tag-44"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u79bb\u7ebf\u670d\u52a1\u5668\u7b97\u6cd5\u90e8\u7f72\u73af\u5883\u914d\u7f6e - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/39240.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u79bb\u7ebf\u670d\u52a1\u5668\u7b97\u6cd5\u90e8\u7f72\u73af\u5883\u914d\u7f6e - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb738\u6b21\uff0c\u70b9\u8d5e20\u6b21\uff0c\u6536\u85cf12\u6b21\u3002\u901a\u8fc7\u4ee5\u4e0a\u6b65\u9aa4\uff0c\u6211\u4eec\u6210\u529f\u5730\u5728\u4e00\u53f0\u65e0\u7f51\u7edc\u670d\u52a1\u5668\u4e0a\u914d\u7f6e\u4e86\u57fa\u7840\u7f16\u8bd1\u73af\u5883\u3001\u5b89\u88c5\u4e86 NVIDIA \u663e\u5361\u9a71\u52a8\uff0c\u5e76\u914d\u7f6e\u597d\u4e86 NVIDIA-Docker\u3002\u73b0\u5728\uff0c\u8fd9\u53f0\u670d\u52a1\u5668\u5df2\u7ecf\u51c6\u5907\u5c31\u7eea\uff0c\u53ef\u4ee5\u5f00\u59cb\u90e8\u7f72\u548c\u8fd0\u884c\u9700\u8981 GPU \u52a0\u901f\u7684\u7b97\u6cd5\u5e94\u7528\u4e86\u3002\u867d\u7136\u79bb\u7ebf\u73af\u5883\u7684\u914d\u7f6e\u8fc7\u7a0b\u76f8\u5bf9\u7e41\u7410\uff0c\u4f46\u53ea\u8981\u7ec6\u5fc3\u51c6\u5907\uff0c\u6309\u90e8\u5c31\u73ed\u5730\u64cd\u4f5c\uff0c\u5c31\u80fd\u987a\u5229\u5b8c\u6210\u3002\u5e0c\u671b\u8fd9\u7bc7\u8bb0\u5f55\u80fd\u4e3a\u6709\u7c7b\u4f3c\u9700\u6c42\u7684\u4eba\u63d0\u4f9b\u4e00\u4e9b\u53c2\u8003\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/39240.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2025-05-23T01:06:06+00:00\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/39240.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/39240.html\",\"name\":\"\u79bb\u7ebf\u670d\u52a1\u5668\u7b97\u6cd5\u90e8\u7f72\u73af\u5883\u914d\u7f6e - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2025-05-23T01:06:06+00:00\",\"dateModified\":\"2025-05-23T01:06:06+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/39240.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/39240.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/39240.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u79bb\u7ebf\u670d\u52a1\u5668\u7b97\u6cd5\u90e8\u7f72\u73af\u5883\u914d\u7f6e\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u79bb\u7ebf\u670d\u52a1\u5668\u7b97\u6cd5\u90e8\u7f72\u73af\u5883\u914d\u7f6e - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/39240.html","og_locale":"zh_CN","og_type":"article","og_title":"\u79bb\u7ebf\u670d\u52a1\u5668\u7b97\u6cd5\u90e8\u7f72\u73af\u5883\u914d\u7f6e - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb738\u6b21\uff0c\u70b9\u8d5e20\u6b21\uff0c\u6536\u85cf12\u6b21\u3002\u901a\u8fc7\u4ee5\u4e0a\u6b65\u9aa4\uff0c\u6211\u4eec\u6210\u529f\u5730\u5728\u4e00\u53f0\u65e0\u7f51\u7edc\u670d\u52a1\u5668\u4e0a\u914d\u7f6e\u4e86\u57fa\u7840\u7f16\u8bd1\u73af\u5883\u3001\u5b89\u88c5\u4e86 NVIDIA \u663e\u5361\u9a71\u52a8\uff0c\u5e76\u914d\u7f6e\u597d\u4e86 NVIDIA-Docker\u3002\u73b0\u5728\uff0c\u8fd9\u53f0\u670d\u52a1\u5668\u5df2\u7ecf\u51c6\u5907\u5c31\u7eea\uff0c\u53ef\u4ee5\u5f00\u59cb\u90e8\u7f72\u548c\u8fd0\u884c\u9700\u8981 GPU \u52a0\u901f\u7684\u7b97\u6cd5\u5e94\u7528\u4e86\u3002\u867d\u7136\u79bb\u7ebf\u73af\u5883\u7684\u914d\u7f6e\u8fc7\u7a0b\u76f8\u5bf9\u7e41\u7410\uff0c\u4f46\u53ea\u8981\u7ec6\u5fc3\u51c6\u5907\uff0c\u6309\u90e8\u5c31\u73ed\u5730\u64cd\u4f5c\uff0c\u5c31\u80fd\u987a\u5229\u5b8c\u6210\u3002\u5e0c\u671b\u8fd9\u7bc7\u8bb0\u5f55\u80fd\u4e3a\u6709\u7c7b\u4f3c\u9700\u6c42\u7684\u4eba\u63d0\u4f9b\u4e00\u4e9b\u53c2\u8003\u3002","og_url":"https:\/\/www.wsisp.com\/helps\/39240.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-05-23T01:06:06+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"3 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/39240.html","url":"https:\/\/www.wsisp.com\/helps\/39240.html","name":"\u79bb\u7ebf\u670d\u52a1\u5668\u7b97\u6cd5\u90e8\u7f72\u73af\u5883\u914d\u7f6e - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2025-05-23T01:06:06+00:00","dateModified":"2025-05-23T01:06:06+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/39240.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/39240.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/39240.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u79bb\u7ebf\u670d\u52a1\u5668\u7b97\u6cd5\u90e8\u7f72\u73af\u5883\u914d\u7f6e"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/39240","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=39240"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/39240\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=39240"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=39240"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=39240"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=39240"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}