Skip to content

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

@hhhyyy123wg

Description

@hhhyyy123wg

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions