Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
hhhyyy123wg opened this issue Sep 25, 2024 · 1 comment

Comments

@hhhyyy123wg
Copy link

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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant