How to pip install in a docker image with a jenkins pipline step?
问题 I have this Dockerfile : FROM python:3.7 CMD ["/bin/bash"] and this Jenkinsfile : pipeline { agent { dockerfile { filename 'Dockerfile' } } stages { stage('Install') { steps { sh 'pip install --upgrade pip' } } } This causes the following error: The directory '/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag. The directory