我试图在上执行以下命令在远程主机上执行Shell脚本
docker exec -it container bash
cd /internal
但是没有找到internal
文件夹,就好像没有执行docker exec
命令一样。
如何在docker容器内运行命令在远程主机上执行销售脚本构建jenkins步骤?
提前感谢。
docker exec container bash -c 'cd /internal ; command 2 ; command 3'
解决了我的问题。