Jenkins容器执行shell提示source命令不存在 问题描述: docker搭建的jenkins,jenkins搭建了python虚拟环境,执行source activate提示 source: not found ps:docker容器是Debian系统,ubuntu好像也可以但是没试过 原因 命令行输入ls -l which sh 提示/bin/sh -> dash 说明是用dash解析 解决方法 1.命令行执行:sudo dpkg-reconfigure dash 界面选择:no(重点!!!) 2.在输入输入ls -l which sh 验证提示/bin/sh -> bash