Re: Pip not able to run inside container if using extra index
there are two things to consider:
1) does the jenkins host allow access to outside services? 2) Jenkins will run things in the container as user 'jenkins', not as root, which is the default if you are using "docker run". If you did not omit the virtualenv actviation for brevity here, pip will probably fail.