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

执行脚本问题 #56

Open
Chonglin-X opened this issue Oct 12, 2022 · 2 comments
Open

执行脚本问题 #56

Chonglin-X opened this issue Oct 12, 2022 · 2 comments

Comments

@Chonglin-X
Copy link

请问一下,配置文件里添加了脚本路径,并把执行脚本挂载到容器中,脚本里是docker命令,所以容器内怎么使用docker命令呢

@Chonglin-X
Copy link
Author

-v /usr/bin/docker:/usr/bin/docker
-v /var/run/docker.sock:/var/run/docker.sock
-v /usr/lib/x86_64-linux-gnu/libltdl.so.7:/usr/lib/x86_64-linux-gnu/libltdl.so.7
这个镜像启动的时候添加如上配置,不生效。
其他镜像是生效的比如nginx,请问怎么处理呢

@WalterZhangYTTXG
Copy link

直接下载docker二进制包,使用二进制包里的docker命令https://download.docker.com/linux/static/stable/x86_64/docker-24.0.5.tgz

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

2 participants