openeuler-mirror / openeuler-docker-images

Mulan Permissive Software License, Version 2
19 stars 6 forks source link

挂载到容器中后,无法执行,宿主机上也可以。非ouler的环境可以 #5

Open hhhyyy123wg opened 1 month ago

hhhyyy123wg commented 1 month ago

image

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

hhhyyy123wg commented 1 month ago

image 为什么需要在容器中 手动创建一个软连接呢