您仍然需要在docker容器中安装AWS CLI。
# Swap to root user to install pip and aws cli then go back to jenkins user USER root RUN apt-get update RUN apt install python3-pip -y RUN pip3 install awscli --upgrade USER jenkins