How can I add software or other packages to a docker container?

Viewed 24128

I have pulled jenkins container from docker hub like this:

docker pull jenkins

The container runs and I can access Jenkins UI in :

http://localhost:8080

My question is:

If I want to be able to create a jenkins job that pulls from a github repo and I want to run some python tests from one of the test files of that repo, how can I install extra packages such as virtualenvwrapper, pip, pytest, nose, selenium etc?

It appears that the docker container does not share any reference with local host file system.

How can I install such packages in this running container?

Thanks

1 Answers
Related