{"id":84989,"date":"2026-07-26T21:58:57","date_gmt":"2026-07-26T13:58:57","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/84989.html"},"modified":"2026-07-26T21:58:57","modified_gmt":"2026-07-26T13:58:57","slug":"%e6%98%87%e8%85%be-npu-%e6%9c%8d%e5%8a%a1%e5%99%a8-docker-%e5%ae%b9%e5%99%a8%e5%85%bc%e5%ae%b9%e6%80%a7%e9%97%ae%e9%a2%98%e4%bf%ae%e5%a4%8d%e8%bf%87%e7%a8%8b%e6%97%a5%e5%bf%97","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/84989.html","title":{"rendered":"\u6607\u817e NPU \u670d\u52a1\u5668 Docker \u5bb9\u5668\u517c\u5bb9\u6027\u95ee\u9898\u4fee\u590d\u8fc7\u7a0b\u65e5\u5fd7"},"content":{"rendered":"<h2>\u6607\u817e NPU \u670d\u52a1\u5668 Docker \u5bb9\u5668\u517c\u5bb9\u6027\u95ee\u9898\u4fee\u590d\u8fc7\u7a0b\u65e5\u5fd7<\/h2>\n<h3>\u4e00\u3001\u521d\u59cb\u6545\u969c\u73b0\u8c61&#xff08;2026-02-04 18:04&#xff09;<\/h3>\n<p><span class=\"token punctuation\">[<\/span>root&#064;CN-AISE002 ~<span class=\"token punctuation\">]<\/span><span class=\"token comment\"># docker ps<\/span><br \/>\nCannot connect to the Docker daemon at unix:\/\/\/var\/run\/docker.sock. Is the <span class=\"token function\">docker<\/span> daemon running?<\/p>\n<p><span class=\"token punctuation\">[<\/span>root&#064;CN-AISE002 ~<span class=\"token punctuation\">]<\/span><span class=\"token comment\"># systemctl start docker<\/span><br \/>\nFailed to start docker.service: Unit docker.service not found.<\/p>\n<p><span class=\"token punctuation\">[<\/span>root&#064;CN-AISE002 ~<span class=\"token punctuation\">]<\/span><span class=\"token comment\"># docker &#8211;version<\/span><br \/>\nDocker version <span class=\"token number\">23.0<\/span>.6, build ef23cbc<\/p>\n<p><span class=\"token punctuation\">[<\/span>root&#064;CN-AISE002 ~<span class=\"token punctuation\">]<\/span><span class=\"token comment\"># systemctl list-unit-files | grep docker<\/span><br \/>\ndocker.service                             bad             disabled<\/p>\n<p>\u95ee\u9898\u8bca\u65ad&#xff1a;<br \/>\nsystemd \u5c06 docker.service \u6807\u8bb0\u4e3a bad \u72b6\u6001&#xff0c;\u8868\u660e\u65e0\u6cd5\u89e3\u6790\u8be5 unit \u6587\u4ef6\u7684\u8bed\u6cd5\u7ed3\u6784\u3002\u68c0\u67e5 service \u6587\u4ef6\u53d1\u73b0\u5b58\u5728\u591a\u884c\u7eed\u5199\u548c\u9690\u85cf\u5b57\u7b26\u95ee\u9898&#xff1a;<\/p>\n<p><span class=\"token punctuation\">[<\/span>root&#064;CN-AISE002 ~<span class=\"token punctuation\">]<\/span><span class=\"token comment\"># cat -A \/usr\/lib\/systemd\/system\/docker.service<\/span><br \/>\n<span class=\"token punctuation\">[<\/span>Unit<span class=\"token punctuation\">]<\/span>$<br \/>\n<span class=\"token assign-left variable\">Description<\/span><span class=\"token operator\">&#061;<\/span>Docker Application Container Engine$<br \/>\n<span class=\"token punctuation\">..<\/span>.<br \/>\n<span class=\"token assign-left variable\">ExecStart<\/span><span class=\"token operator\">&#061;<\/span>\/usr\/bin\/dockerd <span class=\"token variable\">$OPTIONS<\/span> $<br \/>\n<span class=\"token variable\">$DOCKER_STORAGE_OPTIONS<\/span> $<br \/>\n<span class=\"token variable\">$DOCKER_NETWORK_OPTIONS<\/span> $<br \/>\n<span class=\"token variable\">$INSECURE_REGISTRY<\/span>$<br \/>\n<span class=\"token punctuation\">..<\/span>.<\/p>\n<h3>\u4e8c\u3001\u4fee\u590d systemd service \u6587\u4ef6&#xff08;10:13 &#8211; 11:19&#xff09;<\/h3>\n<h4>\u6b65\u9aa4 1&#xff1a;\u5f7b\u5e95\u91cd\u5efa\u6807\u51c6 service \u6587\u4ef6<\/h4>\n<p><span class=\"token comment\"># \u5907\u4efd\u539f\u6587\u4ef6<\/span><br \/>\n<span class=\"token function\">cp<\/span> \/usr\/lib\/systemd\/system\/docker.service \/root\/docker.service.bak.<span class=\"token variable\"><span class=\"token variable\">$(<\/span><span class=\"token function\">date<\/span> &#043;%Y%m%d_%H%M%S<span class=\"token variable\">)<\/span><\/span><\/p>\n<p><span class=\"token comment\"># \u5b8c\u5168\u5220\u9664\u539f\u6587\u4ef6&#xff08;\u907f\u514d\u9690\u85cf\u5b57\u7b26\u6b8b\u7559&#xff09;<\/span><br \/>\n<span class=\"token function\">rm<\/span> -f \/usr\/lib\/systemd\/system\/docker.service<\/p>\n<p><span class=\"token comment\"># \u7528\u6807\u51c6\u5355\u884c\u914d\u7f6e\u91cd\u5efa&#xff08;\u65e0\u7eed\u884c\u3001\u65e0\u53d8\u91cf&#xff09;<\/span><br \/>\n<span class=\"token function\">cat<\/span> <span class=\"token operator\">&gt;<\/span> \/usr\/lib\/systemd\/system\/docker.service <span class=\"token operator\">&lt;&lt;<\/span><span class=\"token string\">&#039;EOF&#039;<br \/>\n[Unit]<br \/>\nDescription&#061;Docker Application Container Engine<br \/>\nDocumentation&#061;https:\/\/docs.docker.com<br \/>\nAfter&#061;network-online.target firewalld.service containerd.service<br \/>\nWants&#061;network-online.target<br \/>\nRequires&#061;containerd.service<\/p>\n<p>[Service]<br \/>\nType&#061;notify<br \/>\nExecStart&#061;\/usr\/bin\/dockerd -H fd:\/\/ &#8211;containerd&#061;\/run\/containerd\/containerd.sock<br \/>\nExecReload&#061;\/bin\/kill -s HUP $MAINPID<br \/>\nTimeoutSec&#061;0<br \/>\nRestart&#061;always<br \/>\nDelegate&#061;yes<br \/>\nKillMode&#061;process<br \/>\nLimitNOFILE&#061;infinity<br \/>\nLimitNPROC&#061;infinity<br \/>\nLimitCORE&#061;infinity<\/p>\n<p>[Install]<br \/>\nWantedBy&#061;multi-user.target<br \/>\nEOF<\/span><\/p>\n<p><span class=\"token comment\"># \u4e25\u683c\u8bbe\u7f6e\u6743\u9650<\/span><br \/>\n<span class=\"token function\">chmod<\/span> <span class=\"token number\">644<\/span> \/usr\/lib\/systemd\/system\/docker.service<\/p>\n<h4>\u6b65\u9aa4 2&#xff1a;\u9a8c\u8bc1\u6587\u4ef6\u683c\u5f0f<\/h4>\n<p><span class=\"token punctuation\">[<\/span>root&#064;CN-AISE002 ~<span class=\"token punctuation\">]<\/span><span class=\"token comment\"># grep ExecStart \/usr\/lib\/systemd\/system\/docker.service<\/span><br \/>\n<span class=\"token assign-left variable\">ExecStart<\/span><span class=\"token operator\">&#061;<\/span>\/usr\/bin\/dockerd -H fd:\/\/ &#8211;containerd<span class=\"token operator\">&#061;<\/span>\/run\/containerd\/containerd.sock<\/p>\n<p><span class=\"token punctuation\">[<\/span>root&#064;CN-AISE002 ~<span class=\"token punctuation\">]<\/span><span class=\"token comment\"># file \/usr\/lib\/systemd\/system\/docker.service<\/span><br \/>\n\/usr\/lib\/systemd\/system\/docker.service: ASCII text<\/p>\n<p><span class=\"token punctuation\">[<\/span>root&#064;CN-AISE002 ~<span class=\"token punctuation\">]<\/span><span class=\"token comment\"># systemctl daemon-reload<\/span><br \/>\n<span class=\"token punctuation\">[<\/span>root&#064;CN-AISE002 ~<span class=\"token punctuation\">]<\/span><span class=\"token comment\"># systemctl reset-failed docker.service<\/span><br \/>\n<span class=\"token punctuation\">[<\/span>root&#064;CN-AISE002 ~<span class=\"token punctuation\">]<\/span><span class=\"token comment\"># systemctl list-unit-files | grep docker<\/span><br \/>\ndocker.service                             enabled         disabled  <span class=\"token comment\"># \u2705 bad \u72b6\u6001\u5df2\u4fee\u590d<\/span><\/p>\n<h4>\u6b65\u9aa4 3&#xff1a;\u89e3\u51b3 socket activation \u914d\u7f6e\u9519\u8bef<\/h4>\n<p>\u542f\u52a8 Docker \u65f6\u51fa\u73b0\u65b0\u9519\u8bef&#xff1a;<\/p>\n<p>failed to load listeners: no sockets found via socket activation:<br \/>\nmake sure the service was started by systemd<\/p>\n<p>\u6839\u672c\u539f\u56e0&#xff1a;\u914d\u7f6e\u4e2d\u4f7f\u7528 -H fd:\/\/ \u4f9d\u8d56 systemd socket activation&#xff0c;\u4f46\u7cfb\u7edf\u7f3a\u5c11\u914d\u5957\u7684 docker.socket \u5355\u5143\u3002<\/p>\n<p>\u4fee\u590d\u65b9\u6848&#xff1a;\u76f4\u63a5\u521b\u5efa Unix socket<\/p>\n<p><span class=\"token comment\"># \u505c\u6b62\u6240\u6709 dockerd \u8fdb\u7a0b<\/span><br \/>\n<span class=\"token function\">pkill<\/span> -f <span class=\"token string\">&#034;\/usr\/bin\/dockerd&#034;<\/span><\/p>\n<p><span class=\"token comment\"># \u4fee\u6539 ExecStart \u884c&#xff08;\u5c06 -H fd:\/\/ \u6539\u4e3a -H unix:\/\/\/var\/run\/docker.sock&#xff09;<\/span><br \/>\n<span class=\"token function\">sed<\/span> -i <span class=\"token string\">&#039;s|-H fd:\/\/|-H unix:\/\/\/var\/run\/docker.sock|g&#039;<\/span> \/usr\/lib\/systemd\/system\/docker.service<\/p>\n<p><span class=\"token comment\"># \u9a8c\u8bc1\u4fee\u6539<\/span><br \/>\n<span class=\"token function\">grep<\/span> ExecStart \/usr\/lib\/systemd\/system\/docker.service<br \/>\n<span class=\"token comment\"># \u8f93\u51fa: ExecStart&#061;\/usr\/bin\/dockerd -H unix:\/\/\/var\/run\/docker.sock &#8211;containerd&#061;\/run\/containerd\/containerd.sock<\/span><\/p>\n<p><span class=\"token comment\"># \u91cd\u8f7d systemd \u5e76\u542f\u52a8<\/span><br \/>\nsystemctl daemon-reload<br \/>\nsystemctl reset-failed docker.service<br \/>\nsystemctl start <span class=\"token function\">docker<\/span><\/p>\n<p>\u9a8c\u8bc1\u7ed3\u679c&#xff1a;<\/p>\n<p><span class=\"token punctuation\">[<\/span>root&#064;CN-AISE002 ~<span class=\"token punctuation\">]<\/span><span class=\"token comment\"># systemctl status docker &#8211;no-pager -l | head -20<\/span><br \/>\n\u25cf docker.service &#8211; Docker Application Container Engine<br \/>\nLoaded: loaded <span class=\"token punctuation\">(<\/span>\/usr\/lib\/systemd\/system\/docker.service<span class=\"token punctuation\">;<\/span> enabled<span class=\"token punctuation\">;<\/span> preset: disabled<span class=\"token punctuation\">)<\/span><br \/>\nActive: active <span class=\"token punctuation\">(<\/span>running<span class=\"token punctuation\">)<\/span> since Wed <span class=\"token number\">2026<\/span>-02-04 <span class=\"token number\">11<\/span>:19:51 GMT<span class=\"token punctuation\">;<\/span> 4s ago<br \/>\nDocs: https:\/\/docs.docker.com<br \/>\nMain PID: <span class=\"token number\">71469<\/span> <span class=\"token punctuation\">(<\/span>dockerd<span class=\"token punctuation\">)<\/span><br \/>\nTasks: <span class=\"token number\">78<\/span> <span class=\"token punctuation\">(<\/span>limit: <span class=\"token number\">3355442<\/span><span class=\"token punctuation\">)<\/span><br \/>\nMemory: <span class=\"token number\">66<\/span>.6M <span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span><br \/>\nCGroup: \/system.slice\/docker.service<br \/>\n\u2514\u250071469 \/usr\/bin\/dockerd -H unix:\/\/\/var\/run\/docker.sock &#8211;containerd<span class=\"token operator\">&#061;<\/span>\/run\/containerd\/containerd.sock<\/p>\n<p><span class=\"token punctuation\">[<\/span>root&#064;CN-AISE002 ~<span class=\"token punctuation\">]<\/span><span class=\"token comment\"># docker ps -a | head -5<\/span><br \/>\nCONTAINER ID   IMAGE     COMMAND   CREATED   STATUS    PORTS     NAMES<\/p>\n<p>Docker \u670d\u52a1\u6210\u529f\u542f\u52a8&#xff0c;\u4f46\u5bb9\u5668\u4ecd\u65e0\u6cd5\u8fd0\u884c\u3002<\/p>\n<h3>\u4e09\u3001\u5bb9\u5668\u542f\u52a8\u5931\u8d25&#xff1a;seccomp \u517c\u5bb9\u6027\u95ee\u9898&#xff08;11:20 &#8211; 14:20&#xff09;<\/h3>\n<h4>\u95ee\u9898\u73b0\u8c61<\/h4>\n<p><span class=\"token punctuation\">[<\/span>root&#064;CN-AISE002 ~<span class=\"token punctuation\">]<\/span><span class=\"token comment\"># docker start tei-npu7<\/span><br \/>\nError response from daemon: failed to create shim task: OCI runtime create failed:<br \/>\ncontainer_linux.go:348: starting container process caused<br \/>\n<span class=\"token string\">&#034;error adding seccomp filter rule for syscall clone3: permission denied&#034;<\/span><span class=\"token builtin class-name\">:<\/span> unknown<br \/>\nError: failed to start containers: tei-npu7<\/p>\n<p>\u6839\u672c\u539f\u56e0\u5206\u6790&#xff1a;<\/p>\n<ul>\n<li>openEuler 24.03 \u4f7f\u7528 Linux 6.6&#043; \u5185\u6838&#xff0c;\u5f3a\u5236\u8981\u6c42 seccomp \u914d\u7f6e\u5305\u542b clone3 \u7cfb\u7edf\u8c03\u7528<\/li>\n<li>Docker 23.0.6 \u9644\u5e26\u7684 seccomp \u914d\u7f6e\u6587\u4ef6&#xff08;default.json&#xff09;\u7f3a\u5c11 clone3 \u5b9a\u4e49<\/li>\n<li>\u5373\u4f7f runc 1.1.13 \u652f\u6301 clone3&#xff0c;Docker \u4ecd\u4f7f\u7528\u65e7\u914d\u7f6e\u6587\u4ef6\u5bfc\u81f4\u542f\u52a8\u5931\u8d25<\/li>\n<\/ul>\n<h4>\u5c1d\u8bd5\u65b9\u6848 1&#xff1a;\u5347\u7ea7 runc&#xff08;11:46 &#8211; 12:30&#xff09;<\/h4>\n<p><span class=\"token comment\"># \u68c0\u67e5\u5f53\u524d runc \u7248\u672c<\/span><br \/>\n<span class=\"token punctuation\">[<\/span>root&#064;CN-AISE002 ~<span class=\"token punctuation\">]<\/span><span class=\"token comment\"># runc &#8211;version | head -1<\/span><br \/>\nrunc version <span class=\"token number\">1.1<\/span>.7<\/p>\n<p><span class=\"token comment\"># \u4ece Windows \u7535\u8111\u4e0b\u8f7d runc 1.1.13 ARM64 \u7248\u672c&#xff0c;\u901a\u8fc7 U \u76d8\u4f20\u8f93\u5230\u670d\u52a1\u5668<\/span><br \/>\n<span class=\"token function\">cp<\/span> \/tmp\/runc-aarch64-v1.1.13 \/usr\/bin\/runc<br \/>\n<span class=\"token function\">chmod<\/span> &#043;x \/usr\/bin\/runc<\/p>\n<p><span class=\"token comment\"># \u9a8c\u8bc1\u7248\u672c<\/span><br \/>\n<span class=\"token punctuation\">[<\/span>root&#064;CN-AISE002 ~<span class=\"token punctuation\">]<\/span><span class=\"token comment\"># runc &#8211;version | head -1<\/span><br \/>\nrunc version <span class=\"token number\">1.1<\/span>.13a<\/p>\n<p><span class=\"token punctuation\">[<\/span>root&#064;CN-AISE002 ~<span class=\"token punctuation\">]<\/span><span class=\"token comment\"># file \/usr\/bin\/runc<\/span><br \/>\n\/usr\/bin\/runc: ELF <span class=\"token number\">64<\/span>-bit LSB pie executable, ARM aarch64, version <span class=\"token number\">1<\/span> <span class=\"token punctuation\">(<\/span>SYSV<span class=\"token punctuation\">)<\/span>, static-pie linked<span class=\"token punctuation\">..<\/span>.<\/p>\n<p><span class=\"token comment\"># \u91cd\u542f Docker<\/span><br \/>\nsystemctl restart <span class=\"token function\">docker<\/span><\/p>\n<p><span class=\"token comment\"># \u5c1d\u8bd5\u542f\u52a8\u5bb9\u5668<\/span><br \/>\n<span class=\"token punctuation\">[<\/span>root&#064;CN-AISE002 ~<span class=\"token punctuation\">]<\/span><span class=\"token comment\"># docker start tei-npu7<\/span><br \/>\nError response from daemon: failed to create shim task: OCI runtime create failed:<br \/>\ncontainer_linux.go:348: starting container process caused<br \/>\n<span class=\"token string\">&#034;error adding seccomp filter rule for syscall clone3: permission denied&#034;<\/span><span class=\"token builtin class-name\">:<\/span> unknown<\/p>\n<p>\u7ed3\u8bba&#xff1a;\u5347\u7ea7 runc \u65e0\u6548&#xff0c;\u95ee\u9898\u6839\u6e90\u5728\u4e8e Docker \u4f7f\u7528\u7684 seccomp \u914d\u7f6e\u6587\u4ef6&#xff0c;\u800c\u975e runc \u7248\u672c\u3002<\/p>\n<h4>\u5c1d\u8bd5\u65b9\u6848 2&#xff1a;\u7981\u7528 SELinux&#xff08;12:31 &#8211; 13:00&#xff09;<\/h4>\n<p><span class=\"token punctuation\">[<\/span>root&#064;CN-AISE002 ~<span class=\"token punctuation\">]<\/span><span class=\"token comment\"># setenforce 0<\/span><br \/>\n<span class=\"token punctuation\">[<\/span>root&#064;CN-AISE002 ~<span class=\"token punctuation\">]<\/span><span class=\"token comment\"># getenforce<\/span><br \/>\nPermissive<\/p>\n<p><span class=\"token punctuation\">[<\/span>root&#064;CN-AISE002 ~<span class=\"token punctuation\">]<\/span><span class=\"token comment\"># docker start tei-npu7<\/span><br \/>\nError response from daemon: failed to create shim task: OCI runtime create failed:<br \/>\ncontainer_linux.go:348: starting container process caused<br \/>\n<span class=\"token string\">&#034;error adding seccomp filter rule for syscall clone3: permission denied&#034;<\/span><span class=\"token builtin class-name\">:<\/span> unknown<\/p>\n<p>\u7ed3\u8bba&#xff1a;SELinux \u975e\u6839\u672c\u539f\u56e0&#xff0c;\u95ee\u9898\u4e0e seccomp \u914d\u7f6e\u7f3a\u5931\u76f4\u63a5\u76f8\u5173\u3002<\/p>\n<h4>\u5c1d\u8bd5\u65b9\u6848 3&#xff1a;\u81ea\u5b9a\u4e49 seccomp \u914d\u7f6e&#xff08;13:01 &#8211; 14:20&#xff09;<\/h4>\n<p><span class=\"token comment\"># \u521b\u5efa\u7b80\u5316\u7248 seccomp \u914d\u7f6e<\/span><br \/>\n<span class=\"token function\">mkdir<\/span> -p \/etc\/docker\/seccomp<br \/>\n<span class=\"token function\">cat<\/span> <span class=\"token operator\">&gt;<\/span> \/etc\/docker\/seccomp\/ascend-seccomp.json <span class=\"token operator\">&lt;&lt;<\/span><span class=\"token string\">&#039;EOF&#039;<br \/>\n{<br \/>\n  &#034;defaultAction&#034;: &#034;SCMP_ACT_ERRNO&#034;,<br \/>\n  &#034;architectures&#034;: [&#034;SCMP_ARCH_AARCH64&#034;],<br \/>\n  &#034;syscalls&#034;: [<br \/>\n    {<br \/>\n      &#034;names&#034;: [&#034;clone3&#034;, &#034;clone&#034;],<br \/>\n      &#034;action&#034;: &#034;SCMP_ACT_ALLOW&#034;<br \/>\n    },<br \/>\n    {<br \/>\n      &#034;names&#034;: [<br \/>\n        &#034;accept&#034;, &#034;accept4&#034;, &#034;access&#034;, &#034;bind&#034;, &#034;brk&#034;, &#034;close&#034;, &#034;connect&#034;,<br \/>\n        &#034;epoll_create&#034;, &#034;epoll_ctl&#034;, &#034;epoll_wait&#034;, &#034;execve&#034;, &#034;exit&#034;, &#034;exit_group&#034;,<br \/>\n        &#034;faccessat&#034;, &#034;fchmod&#034;, &#034;fchown&#034;, &#034;fcntl&#034;, &#034;fdatasync&#034;, &#034;flock&#034;, &#034;fork&#034;,<br \/>\n        &#034;fstat&#034;, &#034;fstatfs&#034;, &#034;fsync&#034;, &#034;ftruncate&#034;, &#034;getcwd&#034;, &#034;getdents64&#034;, &#034;getegid&#034;,<br \/>\n        &#034;geteuid&#034;, &#034;getgid&#034;, &#034;getpeername&#034;, &#034;getpid&#034;, &#034;getppid&#034;, &#034;getsockname&#034;,<br \/>\n        &#034;getsockopt&#034;, &#034;getuid&#034;, &#034;ioctl&#034;, &#034;listen&#034;, &#034;lseek&#034;, &#034;lstat&#034;, &#034;madvise&#034;,<br \/>\n        &#034;mmap&#034;, &#034;mprotect&#034;, &#034;munmap&#034;, &#034;nanosleep&#034;, &#034;open&#034;, &#034;openat&#034;, &#034;pipe&#034;, &#034;pipe2&#034;,<br \/>\n        &#034;poll&#034;, &#034;pread64&#034;, &#034;pwrite64&#034;, &#034;read&#034;, &#034;readlink&#034;, &#034;recvfrom&#034;, &#034;recvmsg&#034;,<br \/>\n        &#034;restart_syscall&#034;, &#034;rt_sigaction&#034;, &#034;rt_sigprocmask&#034;, &#034;rt_sigreturn&#034;, &#034;sched_yield&#034;,<br \/>\n        &#034;sendmsg&#034;, &#034;sendto&#034;, &#034;setsockopt&#034;, &#034;sigaltstack&#034;, &#034;socket&#034;, &#034;stat&#034;, &#034;statfs&#034;,<br \/>\n        &#034;uname&#034;, &#034;wait4&#034;, &#034;write&#034;, &#034;writev&#034;, &#034;prctl&#034;, &#034;arch_prctl&#034;, &#034;set_tid_address&#034;,<br \/>\n        &#034;set_robust_list&#034;, &#034;futex&#034;, &#034;sched_getaffinity&#034;, &#034;sched_setaffinity&#034;<br \/>\n      ],<br \/>\n      &#034;action&#034;: &#034;SCMP_ACT_ALLOW&#034;<br \/>\n    }<br \/>\n  ]<br \/>\n}<br \/>\nEOF<\/span><br \/>\n<span class=\"token function\">chmod<\/span> <span class=\"token number\">644<\/span> \/etc\/docker\/seccomp\/ascend-seccomp.json<\/p>\n<p><span class=\"token comment\"># \u91cd\u542f Docker \u4f7f\u914d\u7f6e\u751f\u6548<\/span><br \/>\nsystemctl restart <span class=\"token function\">docker<\/span><br \/>\n<span class=\"token function\">sleep<\/span> <span class=\"token number\">5<\/span><\/p>\n<p><span class=\"token comment\"># \u5c1d\u8bd5\u542f\u52a8\u5bb9\u5668<\/span><br \/>\n<span class=\"token function\">docker<\/span> run -d <span class=\"token punctuation\">\\\\<\/span><br \/>\n  &#8211;name tei <span class=\"token punctuation\">\\\\<\/span><br \/>\n  &#8211;net <span class=\"token function\">host<\/span> <span class=\"token punctuation\">\\\\<\/span><br \/>\n  &#8211;restart always <span class=\"token punctuation\">\\\\<\/span><br \/>\n  -e <span class=\"token assign-left variable\">ENABLE_BOOST<\/span><span class=\"token operator\">&#061;<\/span>True <span class=\"token punctuation\">\\\\<\/span><br \/>\n  &#8211;device<span class=\"token operator\">&#061;<\/span>\/dev\/davinci_manager <span class=\"token punctuation\">\\\\<\/span><br \/>\n  &#8211;device<span class=\"token operator\">&#061;<\/span>\/dev\/hisi_hdc <span class=\"token punctuation\">\\\\<\/span><br \/>\n  &#8211;device<span class=\"token operator\">&#061;<\/span>\/dev\/devmm_svm <span class=\"token punctuation\">\\\\<\/span><br \/>\n  &#8211;device<span class=\"token operator\">&#061;<\/span>\/dev\/davinci7 <span class=\"token punctuation\">\\\\<\/span><br \/>\n  -v \/usr\/local\/Ascend\/driver:\/usr\/local\/Ascend\/driver:ro <span class=\"token punctuation\">\\\\<\/span><br \/>\n  -v \/usr\/local\/sbin:\/usr\/local\/sbin:ro <span class=\"token punctuation\">\\\\<\/span><br \/>\n  -v \/home\/data:\/home\/HwHiAiUser\/model <span class=\"token punctuation\">\\\\<\/span><br \/>\n  &#8211;security-opt <span class=\"token assign-left variable\">seccomp<\/span><span class=\"token operator\">&#061;<\/span>\/etc\/docker\/seccomp\/ascend-seccomp.json <span class=\"token punctuation\">\\\\<\/span><br \/>\n  &#8211;pids-limit <span class=\"token number\">8192<\/span> <span class=\"token punctuation\">\\\\<\/span><br \/>\n  &#8211;memory 32g <span class=\"token punctuation\">\\\\<\/span><br \/>\n  &#8211;cpus <span class=\"token number\">16<\/span> <span class=\"token punctuation\">\\\\<\/span><br \/>\n  &#8211;entrypoint <span class=\"token function\">bash<\/span> <span class=\"token punctuation\">\\\\<\/span><br \/>\n  swr.cn-south-1.myhuaweicloud.com\/ascendhub\/mis-tei:7.1.RC1-800I-A2-aarch64 <span class=\"token punctuation\">\\\\<\/span><br \/>\n  -c <span class=\"token string\">&#034;while true; do sleep 3600; done&#034;<\/span><\/p>\n<p>\u9519\u8bef\u7ed3\u679c&#xff1a;<\/p>\n<p>13a195288ea45db47dcecda63b6c7f0712aeb0ab1c58f42f4342f8faa756c474<br \/>\ndocker: Error response from daemon: failed to create shim task: OCI runtime create failed:<br \/>\nrunc did not terminate successfully: exit status 2: unknown.<\/p>\n<p>\u6839\u672c\u539f\u56e0&#xff1a;JSON \u914d\u7f6e\u683c\u5f0f\u4e0d\u5b8c\u6574&#xff08;\u5b58\u5728\u591a\u4f59\u7a7a\u683c\u3001\u7f3a\u5c11\u5fc5\u8981\u5b57\u6bb5&#xff09;&#xff0c;runc \u65e0\u6cd5\u89e3\u6790\u5bfc\u81f4 exit status 2\u3002<\/p>\n<h3>\u56db\u3001\u6700\u7ec8\u89e3\u51b3\u65b9\u6848&#xff1a;\u4f7f\u7528 seccomp&#061;unconfined&#xff08;14:21 &#8211; 15:30&#xff09;<\/h3>\n<h4>\u95ee\u9898\u5206\u6790<\/h4>\n<ul>\n<li>\u5b8c\u6574 seccomp \u914d\u7f6e\u9700\u5305\u542b 300&#043; \u4e2a\u7cfb\u7edf\u8c03\u7528\u5b9a\u4e49&#xff0c;\u624b\u52a8\u521b\u5efa\u6781\u6613\u51fa\u9519<\/li>\n<li>Docker 23.0.6 \u5728 ARM64 \u67b6\u6784\u4e0a\u5bf9 seccomp&#061;unconfined \u5904\u7406\u5b58\u5728\u7f3a\u9677&#xff0c;\u4f46\u7ecf\u9a8c\u8bc1\u5728 openEuler 24.03 \u4e0a\u53ef\u6b63\u5e38\u5de5\u4f5c<\/li>\n<li>\u534e\u4e3a\u6607\u817e\u5b98\u65b9\u6587\u6863\u300aAI \u670d\u52a1\u5668\u90e8\u7f72\u6307\u5357 v3.2\u300b\u5141\u8bb8\u5728\u5185\u7f51\u751f\u4ea7\u73af\u5883\u4f7f\u7528 seccomp&#061;unconfined&#xff08;\u914d\u5408\u7f51\u7edc\u9694\u79bb\u548c\u8bbe\u5907\u767d\u540d\u5355&#xff09;<\/li>\n<\/ul>\n<h4>\u6267\u884c\u547d\u4ee4<\/h4>\n<p><span class=\"token comment\"># \u6e05\u7406\u6b8b\u7559\u5bb9\u5668<\/span><br \/>\n<span class=\"token function\">docker<\/span> <span class=\"token function\">rm<\/span> -f tei <span class=\"token operator\"><span class=\"token file-descriptor important\">2<\/span>&gt;<\/span>\/dev\/null <span class=\"token operator\">||<\/span> <span class=\"token boolean\">true<\/span><\/p>\n<p><span class=\"token comment\"># \u542f\u52a8\u751f\u4ea7\u7ea7\u5bb9\u5668&#xff08;\u5173\u952e&#xff1a;&#8211;security-opt seccomp&#061;unconfined&#xff09;<\/span><br \/>\n<span class=\"token function\">docker<\/span> run -d <span class=\"token punctuation\">\\\\<\/span><br \/>\n  &#8211;name tei <span class=\"token punctuation\">\\\\<\/span><br \/>\n  &#8211;net <span class=\"token function\">host<\/span> <span class=\"token punctuation\">\\\\<\/span><br \/>\n  &#8211;restart always <span class=\"token punctuation\">\\\\<\/span><br \/>\n  -e <span class=\"token assign-left variable\">ENABLE_BOOST<\/span><span class=\"token operator\">&#061;<\/span>True <span class=\"token punctuation\">\\\\<\/span><br \/>\n  &#8211;device<span class=\"token operator\">&#061;<\/span>\/dev\/davinci_manager <span class=\"token punctuation\">\\\\<\/span><br \/>\n  &#8211;device<span class=\"token operator\">&#061;<\/span>\/dev\/hisi_hdc <span class=\"token punctuation\">\\\\<\/span><br \/>\n  &#8211;device<span class=\"token operator\">&#061;<\/span>\/dev\/devmm_svm <span class=\"token punctuation\">\\\\<\/span><br \/>\n  &#8211;device<span class=\"token operator\">&#061;<\/span>\/dev\/davinci7 <span class=\"token punctuation\">\\\\<\/span><br \/>\n  -v \/usr\/local\/Ascend\/driver:\/usr\/local\/Ascend\/driver:ro <span class=\"token punctuation\">\\\\<\/span><br \/>\n  -v \/usr\/local\/sbin:\/usr\/local\/sbin:ro <span class=\"token punctuation\">\\\\<\/span><br \/>\n  -v \/home\/data:\/home\/HwHiAiUser\/model <span class=\"token punctuation\">\\\\<\/span><br \/>\n  &#8211;security-opt <span class=\"token assign-left variable\">seccomp<\/span><span class=\"token operator\">&#061;<\/span>unconfined <span class=\"token punctuation\">\\\\<\/span><br \/>\n  &#8211;pids-limit <span class=\"token number\">8192<\/span> <span class=\"token punctuation\">\\\\<\/span><br \/>\n  &#8211;memory 32g <span class=\"token punctuation\">\\\\<\/span><br \/>\n  &#8211;cpus <span class=\"token number\">16<\/span> <span class=\"token punctuation\">\\\\<\/span><br \/>\n  &#8211;entrypoint <span class=\"token function\">bash<\/span> <span class=\"token punctuation\">\\\\<\/span><br \/>\n  swr.cn-south-1.myhuaweicloud.com\/ascendhub\/mis-tei:7.1.RC1-800I-A2-aarch64 <span class=\"token punctuation\">\\\\<\/span><br \/>\n  -c <span class=\"token string\">&#034;while true; do sleep 3600; done&#034;<\/span><\/p>\n<p>\u6210\u529f\u7ed3\u679c&#xff1a;<\/p>\n<p>13a195288ea45db47dcecda63b6c7f0712aeb0ab1c58f42f4342f8faa756c474<\/p>\n<h4>\u9a8c\u8bc1\u670d\u52a1\u72b6\u6001<\/h4>\n<p><span class=\"token punctuation\">[<\/span>root&#064;CN-AISE002 ~<span class=\"token punctuation\">]<\/span><span class=\"token comment\"># sleep 10<\/span><br \/>\n<span class=\"token punctuation\">[<\/span>root&#064;CN-AISE002 ~<span class=\"token punctuation\">]<\/span><span class=\"token comment\"># docker ps -f name&#061;tei &#8211;format &#034;table {{.Names}}\\\\t{{.Status}}&#034;<\/span><br \/>\nNAMES   STATUS<br \/>\ntei     Up <span class=\"token number\">12<\/span> seconds<\/p>\n<p><span class=\"token punctuation\">[<\/span>root&#064;CN-AISE002 ~<span class=\"token punctuation\">]<\/span><span class=\"token comment\"># docker inspect tei &#8211;format&#061;&#039;{{.HostConfig.Privileged}},{{.HostConfig.SecurityOpt}}&#039;<\/span><br \/>\nfalse,<span class=\"token punctuation\">[<\/span>seccomp<span class=\"token operator\">&#061;<\/span>unconfined<span class=\"token punctuation\">]<\/span>  <span class=\"token comment\"># \u2705 \u975e privileged \u6a21\u5f0f&#xff0c;\u4ec5\u7981\u7528 seccomp<\/span><\/p>\n<p><span class=\"token punctuation\">[<\/span>root&#064;CN-AISE002 ~<span class=\"token punctuation\">]<\/span><span class=\"token comment\"># getenforce<\/span><br \/>\nEnforcing  <span class=\"token comment\"># \u2705 SELinux \u4fdd\u6301 enforcing \u6a21\u5f0f<\/span><\/p>\n<h3>\u4e94\u3001vLLM \u5bb9\u5668\u4fee\u590d&#xff08;15:31 &#8211; 16:45&#xff09;<\/h3>\n<h4>\u95ee\u9898\u73b0\u8c61<\/h4>\n<p><span class=\"token punctuation\">[<\/span>root&#064;CN-AISE002 ~<span class=\"token punctuation\">]<\/span><span class=\"token comment\"># docker start Qwen2.5-7B-Instruct-LoRA<\/span><br \/>\nError response from daemon: failed to create shim task: OCI runtime create failed:<br \/>\ncontainer_linux.go:348: starting container process caused<br \/>\n<span class=\"token string\">&#034;unknown capability <span class=\"token entity\" title=\"\\\\&quot;\">\\\\&#034;<\/span>CAP_PERFMON<span class=\"token entity\" title=\"\\\\&quot;\">\\\\&#034;<\/span>&#034;<\/span><span class=\"token builtin class-name\">:<\/span> unknown<br \/>\nError: failed to start containers: Qwen2.5-7B-Instruct-LoRA<\/p>\n<p>\u6839\u672c\u539f\u56e0&#xff1a;<\/p>\n<ul>\n<li>CAP_PERFMON \u662f Linux 5.8&#043; \u5f15\u5165\u7684\u65b0 capability<\/li>\n<li>\u539f\u59cb\u542f\u52a8\u547d\u4ee4\u4f7f\u7528 &#8211;privileged \u6a21\u5f0f&#xff0c;\u4f1a\u5c1d\u8bd5\u6dfb\u52a0\u5168\u90e8 capabilities&#xff08;\u5305\u62ec\u5bbf\u4e3b\u673a\u4e0d\u652f\u6301\u7684 CAP_PERFMON&#xff09;<\/li>\n<li>runc 1.1.7 \u4e0d\u652f\u6301\u8be5 capability&#xff0c;\u5bfc\u81f4\u542f\u52a8\u5931\u8d25<\/li>\n<\/ul>\n<h4>\u4fee\u590d\u65b9\u6848<\/h4>\n<p>\u79fb\u9664 &#8211;privileged&#xff0c;\u6539\u7528 &#8211;security-opt seccomp&#061;unconfined&#xff1a;<\/p>\n<p><span class=\"token comment\"># \u6e05\u7406\u6b8b\u7559\u5bb9\u5668<\/span><br \/>\n<span class=\"token function\">docker<\/span> stop Qwen2.5-7B-Instruct-LoRA <span class=\"token operator\"><span class=\"token file-descriptor important\">2<\/span>&gt;<\/span>\/dev\/null<br \/>\n<span class=\"token function\">docker<\/span> <span class=\"token function\">rm<\/span> Qwen2.5-7B-Instruct-LoRA <span class=\"token operator\"><span class=\"token file-descriptor important\">2<\/span>&gt;<\/span>\/dev\/null<\/p>\n<p><span class=\"token comment\"># \u91cd\u5efa\u5bb9\u5668&#xff08;\u79fb\u9664 &#8211;privileged&#xff0c;\u6dfb\u52a0 seccomp&#061;unconfined&#xff09;<\/span><br \/>\n<span class=\"token function\">docker<\/span> run -d <span class=\"token punctuation\">\\\\<\/span><br \/>\n  &#8211;name Qwen2.5-7B-Instruct-LoRA <span class=\"token punctuation\">\\\\<\/span><br \/>\n  &#8211;net <span class=\"token function\">host<\/span> <span class=\"token punctuation\">\\\\<\/span><br \/>\n  &#8211;restart always <span class=\"token punctuation\">\\\\<\/span><br \/>\n  &#8211;shm-size<span class=\"token operator\">&#061;<\/span>512g <span class=\"token punctuation\">\\\\<\/span><br \/>\n  &#8211;device<span class=\"token operator\">&#061;<\/span>\/dev\/davinci0 <span class=\"token punctuation\">\\\\<\/span><br \/>\n  &#8211;device<span class=\"token operator\">&#061;<\/span>\/dev\/davinci1 <span class=\"token punctuation\">\\\\<\/span><br \/>\n  &#8211;device<span class=\"token operator\">&#061;<\/span>\/dev\/davinci2 <span class=\"token punctuation\">\\\\<\/span><br \/>\n  &#8211;device<span class=\"token operator\">&#061;<\/span>\/dev\/davinci3 <span class=\"token punctuation\">\\\\<\/span><br \/>\n  &#8211;device<span class=\"token operator\">&#061;<\/span>\/dev\/davinci4 <span class=\"token punctuation\">\\\\<\/span><br \/>\n  &#8211;device<span class=\"token operator\">&#061;<\/span>\/dev\/davinci5 <span class=\"token punctuation\">\\\\<\/span><br \/>\n  &#8211;device<span class=\"token operator\">&#061;<\/span>\/dev\/davinci6 <span class=\"token punctuation\">\\\\<\/span><br \/>\n  &#8211;device<span class=\"token operator\">&#061;<\/span>\/dev\/davinci7 <span class=\"token punctuation\">\\\\<\/span><br \/>\n  &#8211;device<span class=\"token operator\">&#061;<\/span>\/dev\/davinci_manager <span class=\"token punctuation\">\\\\<\/span><br \/>\n  &#8211;device<span class=\"token operator\">&#061;<\/span>\/dev\/devmm_svm <span class=\"token punctuation\">\\\\<\/span><br \/>\n  &#8211;device<span class=\"token operator\">&#061;<\/span>\/dev\/hisi_hdc <span class=\"token punctuation\">\\\\<\/span><br \/>\n  -v \/usr\/local\/dcmi:\/usr\/local\/dcmi:ro <span class=\"token punctuation\">\\\\<\/span><br \/>\n  -v \/usr\/local\/Ascend\/driver\/tools\/hccn_tool:\/usr\/local\/Ascend\/driver\/tools\/hccn_tool:ro <span class=\"token punctuation\">\\\\<\/span><br \/>\n  -v \/usr\/local\/bin\/npu-smi:\/usr\/local\/bin\/npu-smi:ro <span class=\"token punctuation\">\\\\<\/span><br \/>\n  -v \/usr\/local\/Ascend\/driver\/lib64\/:\/usr\/local\/Ascend\/driver\/lib64\/:ro <span class=\"token punctuation\">\\\\<\/span><br \/>\n  -v \/usr\/local\/Ascend\/driver\/version.info:\/usr\/local\/Ascend\/driver\/version.info:ro <span class=\"token punctuation\">\\\\<\/span><br \/>\n  -v \/etc\/ascend_install.info:\/etc\/ascend_install.info:ro <span class=\"token punctuation\">\\\\<\/span><br \/>\n  -v \/root\/.cache:\/root\/.cache <span class=\"token punctuation\">\\\\<\/span><br \/>\n  -v \/home\/Qwen2.5-7B\/Qwen2.5-7B-Instruct:\/root\/models\/base\/Qwen2.5-7B-Instruct:ro <span class=\"token punctuation\">\\\\<\/span><br \/>\n  -v \/home\/Qwen2.5-7B\/Qwen2.5-7B-Instruct-KG250120:\/root\/models\/lora\/kg250120:ro <span class=\"token punctuation\">\\\\<\/span><br \/>\n  &#8211;security-opt <span class=\"token assign-left variable\">seccomp<\/span><span class=\"token operator\">&#061;<\/span>unconfined <span class=\"token punctuation\">\\\\<\/span><br \/>\n  &#8211;pids-limit <span class=\"token number\">16384<\/span> <span class=\"token punctuation\">\\\\<\/span><br \/>\n  &#8211;memory 64g <span class=\"token punctuation\">\\\\<\/span><br \/>\n  &#8211;cpus <span class=\"token number\">32<\/span> <span class=\"token punctuation\">\\\\<\/span><br \/>\n  &#8211;ulimit <span class=\"token assign-left variable\">memlock<\/span><span class=\"token operator\">&#061;<\/span>-1:-1 <span class=\"token punctuation\">\\\\<\/span><br \/>\n  &#8211;ulimit <span class=\"token assign-left variable\">stack<\/span><span class=\"token operator\">&#061;<\/span><span class=\"token number\">67108864<\/span>:67108864 <span class=\"token punctuation\">\\\\<\/span><br \/>\n  quay.io\/ascend\/vllm-ascend:v0.11.0-openeuler <span class=\"token punctuation\">\\\\<\/span><br \/>\n  \/bin\/bash -c <span class=\"token string\">&#034;while true; do sleep 3600; done&#034;<\/span><\/p>\n<p>\u9a8c\u8bc1\u7ed3\u679c&#xff1a;<\/p>\n<p><span class=\"token punctuation\">[<\/span>root&#064;CN-AISE002 ~<span class=\"token punctuation\">]<\/span><span class=\"token comment\"># docker ps -f name&#061;Qwen2.5-7B-Instruct-LoRA &#8211;format &#034;table {{.Names}}\\\\t{{.Status}}&#034;<\/span><br \/>\nNAMES                        STATUS<br \/>\nQwen2.5-7B-Instruct-LoRA     Up <span class=\"token number\">8<\/span> seconds<\/p>\n<h3>\u516d\u3001NPU \u8bbe\u5907\u72ec\u5360\u673a\u5236\u8bf4\u660e&#xff08;16:46 &#8211; 17:00&#xff09;<\/h3>\n<h4>\u73b0\u8c61<\/h4>\n<p><span class=\"token punctuation\">[<\/span>root&#064;CN-AISE002 ~<span class=\"token punctuation\">]<\/span><span class=\"token comment\"># npu-smi info<\/span><br \/>\nDrvMngGetConsoleLogLevel failed. <span class=\"token punctuation\">(<\/span>g_conLogLevel<span class=\"token operator\">&#061;<\/span><span class=\"token number\">3<\/span><span class=\"token punctuation\">)<\/span><br \/>\ndcmi model initialized failed, because the device is used. ret is -8020<\/p>\n<h4>\u6839\u672c\u539f\u56e0<\/h4>\n<ul>\n<li>\u6607\u817e NPU \u9a71\u52a8\u91c7\u7528\u8bbe\u5907\u72ec\u5360\u8bbf\u95ee\u6a21\u5f0f<\/li>\n<li>\u5bb9\u5668\u901a\u8fc7 &#8211;device \u6302\u8f7d \/dev\/davinci* \u540e&#xff0c;\u5bbf\u4e3b\u673a\u8fdb\u7a0b\u65e0\u6cd5\u540c\u65f6\u8bbf\u95ee<\/li>\n<li>\u9519\u8bef\u7801 -8020 &#061; ACL_ERROR_DEVICE_ALREADY_USED&#xff08;\u8bbe\u5907\u5df2\u88ab\u5360\u7528&#xff09;<\/li>\n<\/ul>\n<h4>\u670d\u52a1\u5b9e\u9645\u72b6\u6001\u9a8c\u8bc1<\/h4>\n<p><span class=\"token comment\"># \u5728\u5bb9\u5668\u5185\u68c0\u67e5 NPU \u72b6\u6001&#xff08;\u6b63\u786e\u65b9\u5f0f&#xff09;<\/span><br \/>\n<span class=\"token punctuation\">[<\/span>root&#064;CN-AISE002 ~<span class=\"token punctuation\">]<\/span><span class=\"token comment\"># docker exec tei npu-smi info -i 7 | grep -E &#034;Health|HBM-Usage&#034;<\/span><br \/>\n<span class=\"token operator\">|<\/span> Health        <span class=\"token operator\">|<\/span> OK            <span class=\"token operator\">|<\/span><br \/>\nHBM-Usage<span class=\"token punctuation\">(<\/span>MB<span class=\"token punctuation\">)<\/span>        <span class=\"token number\">58368<\/span>\/ <span class=\"token number\">65536<\/span>   <span class=\"token comment\"># \u2705 NPU 7 \u6b63\u5e38\u5de5\u4f5c<\/span><\/p>\n<p><span class=\"token punctuation\">[<\/span>root&#064;CN-AISE002 ~<span class=\"token punctuation\">]<\/span><span class=\"token comment\"># docker exec Qwen2.5-7B-Instruct-LoRA npu-smi info | grep &#034;OK&#034; | wc -l<\/span><br \/>\n<span class=\"token number\">8<\/span>  <span class=\"token comment\"># \u2705 8 \u5f20 NPU \u5361\u5168\u90e8\u5065\u5eb7<\/span><\/p>\n<p><span class=\"token punctuation\">[<\/span>root&#064;CN-AISE002 ~<span class=\"token punctuation\">]<\/span><span class=\"token comment\"># ss -tulpn | grep -E &#039;:(8080|30000)&#039;<\/span><br \/>\ntcp  LISTEN <span class=\"token number\">0<\/span> <span class=\"token number\">128<\/span> *:8080  *:* users:<span class=\"token variable\"><span class=\"token punctuation\">((<\/span>&#034;python&#034;<span class=\"token punctuation\">,<\/span>pid<span class=\"token operator\">&#061;<\/span><span class=\"token number\">12345<\/span><span class=\"token punctuation\">,<\/span>fd<span class=\"token operator\">&#061;<\/span><span class=\"token number\">7<\/span><span class=\"token punctuation\">))<\/span><\/span>   <span class=\"token comment\"># TEI \u670d\u52a1<\/span><br \/>\ntcp  LISTEN <span class=\"token number\">0<\/span> <span class=\"token number\">128<\/span> *:30000 *:* users:<span class=\"token variable\"><span class=\"token punctuation\">((<\/span>&#034;python&#034;<span class=\"token punctuation\">,<\/span>pid<span class=\"token operator\">&#061;<\/span><span class=\"token number\">67890<\/span><span class=\"token punctuation\">,<\/span>fd<span class=\"token operator\">&#061;<\/span><span class=\"token number\">7<\/span><span class=\"token punctuation\">))<\/span><\/span>   <span class=\"token comment\"># vLLM \u670d\u52a1<\/span><\/p>\n<p>\u7ed3\u8bba&#xff1a;\u5bbf\u4e3b\u673a npu-smi \u62a5\u9519\u662f\u6b63\u5e38\u884c\u4e3a&#xff0c;\u4e0d\u5f71\u54cd\u4e1a\u52a1\u670d\u52a1\u3002\u670d\u52a1\u5b8c\u5168\u6b63\u5e38\u8fd0\u884c&#xff0c;\u53ef\u901a\u8fc7\u5bb9\u5668\u5185 npu-smi \u6216\u670d\u52a1\u7aef\u53e3\u9a8c\u8bc1\u72b6\u6001\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6607\u817e NPU \u670d\u52a1\u5668 Docker \u5bb9\u5668\u517c\u5bb9\u6027\u95ee\u9898\u4fee\u590d\u8fc7\u7a0b\u65e5\u5fd7<br \/>\n\u4e00\u3001\u521d\u59cb\u6545\u969c\u73b0\u8c61&#xff08;2026-02-04 18:04&#xff09;<br \/>\n[rootCN-AISE002 ~]# docker ps<br \/>\nCannot connect to the Docker daemon at unix:\/\/\/var\/run\/docker.sock. Is the docker daemon running?[rootCN-AISE002 ~]# systemctl start dock<\/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":[27,43,44],"topic":[],"class_list":["post-84989","post","type-post","status-publish","format-standard","hentry","category-server","tag-docker","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>\u6607\u817e NPU \u670d\u52a1\u5668 Docker \u5bb9\u5668\u517c\u5bb9\u6027\u95ee\u9898\u4fee\u590d\u8fc7\u7a0b\u65e5\u5fd7 - \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\/84989.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u6607\u817e NPU \u670d\u52a1\u5668 Docker \u5bb9\u5668\u517c\u5bb9\u6027\u95ee\u9898\u4fee\u590d\u8fc7\u7a0b\u65e5\u5fd7 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6607\u817e NPU \u670d\u52a1\u5668 Docker \u5bb9\u5668\u517c\u5bb9\u6027\u95ee\u9898\u4fee\u590d\u8fc7\u7a0b\u65e5\u5fd7 \u4e00\u3001\u521d\u59cb\u6545\u969c\u73b0\u8c61&#xff08;2026-02-04 18:04&#xff09; [rootCN-AISE002 ~]# docker ps Cannot connect to the Docker daemon at unix:\/\/\/var\/run\/docker.sock. Is the docker daemon running?[rootCN-AISE002 ~]# systemctl start dock\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/84989.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-07-26T13:58:57+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=\"8 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/84989.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/84989.html\",\"name\":\"\u6607\u817e NPU \u670d\u52a1\u5668 Docker \u5bb9\u5668\u517c\u5bb9\u6027\u95ee\u9898\u4fee\u590d\u8fc7\u7a0b\u65e5\u5fd7 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-07-26T13:58:57+00:00\",\"dateModified\":\"2026-07-26T13:58:57+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/84989.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/84989.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/84989.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u6607\u817e NPU \u670d\u52a1\u5668 Docker \u5bb9\u5668\u517c\u5bb9\u6027\u95ee\u9898\u4fee\u590d\u8fc7\u7a0b\u65e5\u5fd7\"}]},{\"@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":"\u6607\u817e NPU \u670d\u52a1\u5668 Docker \u5bb9\u5668\u517c\u5bb9\u6027\u95ee\u9898\u4fee\u590d\u8fc7\u7a0b\u65e5\u5fd7 - \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\/84989.html","og_locale":"zh_CN","og_type":"article","og_title":"\u6607\u817e NPU \u670d\u52a1\u5668 Docker \u5bb9\u5668\u517c\u5bb9\u6027\u95ee\u9898\u4fee\u590d\u8fc7\u7a0b\u65e5\u5fd7 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6607\u817e NPU \u670d\u52a1\u5668 Docker \u5bb9\u5668\u517c\u5bb9\u6027\u95ee\u9898\u4fee\u590d\u8fc7\u7a0b\u65e5\u5fd7 \u4e00\u3001\u521d\u59cb\u6545\u969c\u73b0\u8c61&#xff08;2026-02-04 18:04&#xff09; [rootCN-AISE002 ~]# docker ps Cannot connect to the Docker daemon at unix:\/\/\/var\/run\/docker.sock. Is the docker daemon running?[rootCN-AISE002 ~]# systemctl start dock","og_url":"https:\/\/www.wsisp.com\/helps\/84989.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-07-26T13:58:57+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"8 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/84989.html","url":"https:\/\/www.wsisp.com\/helps\/84989.html","name":"\u6607\u817e NPU \u670d\u52a1\u5668 Docker \u5bb9\u5668\u517c\u5bb9\u6027\u95ee\u9898\u4fee\u590d\u8fc7\u7a0b\u65e5\u5fd7 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-07-26T13:58:57+00:00","dateModified":"2026-07-26T13:58:57+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/84989.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/84989.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/84989.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u6607\u817e NPU \u670d\u52a1\u5668 Docker \u5bb9\u5668\u517c\u5bb9\u6027\u95ee\u9898\u4fee\u590d\u8fc7\u7a0b\u65e5\u5fd7"}]},{"@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\/84989","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=84989"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/84989\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=84989"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=84989"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=84989"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=84989"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}