Your results seem different from mine. The commands I executed: $ docker run -i --rm -p 8080:8080 -p 50000:50000 jenkins /bin/bash python print 1 + 1 print 2 + 2 from PIL import Image ^D 2 4 Traceback (most recent call last): File "<stdin>", line 5, in <module> ImportError: No module named PIL
As far as I can tell, that means the PIL module is not available in the docker image named "jenkins". Mark Waite On Tue, May 24, 2016 at 4:25 PM Cherry Tsai <[email protected]> wrote: > Must be use Dockerfile install? I used manually install in Jenkins > container. > > I tried to run command in Jenkins container: > > $ python > $ from PIL import Image > > It's working for me. > > Then I checked Python2.7 path, it has PIL and Image folder in > /usr/local/lib/python2.7. > > But only Jenkins couldn't use Python PIL and Image. I'm very confused. > > -- > You received this message because you are subscribed to the Google Groups > "Jenkins Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/jenkinsci-users/0c7bce9d-71c4-446c-9b53-e621fe2d34ef%40googlegroups.com > <https://groups.google.com/d/msgid/jenkinsci-users/0c7bce9d-71c4-446c-9b53-e621fe2d34ef%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CAO49JtHgcyO3wfzrnKsJQ%2BOAWcznGu8BA_hK4GsLQN8z%2BP_OjQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
