Open hhhyyy123wg opened 1 month ago
dgri /usr/lib # sudo docker run -it --rm -v /usr/bin/lynxi-smi:/root/lynxi-smi quay.io/openeuler/openeuler:22.03-lts-sp2 bash
Welcome to 5.10.0
System information as of time: Wed Sep 25 08:41:38 UTC 2024
System load: 0.00 Processes: 5 Memory used: 1.3% Swap used: 0.0% Usage On: 4% Users online: 0
[root@e363f69d0d0b /]# /root/lynxi-smi bash: /root/lynxi-smi: No such file or directory [root@e363f69d0d0b /]# ls -l /root/ total 2096 --wx-wx-wx 1 root root 2144888 Sep 24 03:28 lynxi-smi [root@e363f69d0d0b /]# chmod +x /root/lynxi-smi [root@e363f69d0d0b /]# /root/lynxi-smi bash: /root/lynxi-smi: No such file or directory
为什么需要在容器中 手动创建一个软连接呢
dgri /usr/lib # sudo docker run -it --rm -v /usr/bin/lynxi-smi:/root/lynxi-smi quay.io/openeuler/openeuler:22.03-lts-sp2 bash
Welcome to 5.10.0
System information as of time: Wed Sep 25 08:41:38 UTC 2024
System load: 0.00 Processes: 5 Memory used: 1.3% Swap used: 0.0% Usage On: 4% Users online: 0
[root@e363f69d0d0b /]# /root/lynxi-smi bash: /root/lynxi-smi: No such file or directory [root@e363f69d0d0b /]# ls -l /root/ total 2096 --wx-wx-wx 1 root root 2144888 Sep 24 03:28 lynxi-smi [root@e363f69d0d0b /]# chmod +x /root/lynxi-smi [root@e363f69d0d0b /]# /root/lynxi-smi bash: /root/lynxi-smi: No such file or directory