how to install python package using tensorflow docker

I have a tensorflow docker image and running docker as
docker run -p 8888:8888 -it

which runs jupyter notebook and I can access it from my browser on port 8888.
The problem is I need to install a python package seaborn in this docker container. How can I do so.
I opened the terminal from jupyter notebook and tried installing using pip but it is not able to connect to internet.

  • Can't download python packages onto Docker image
  • Remove test/ and config-3.5m/ directory in /usr/local/lib/python3.5
  • Docker container with status “Dead” after consul healthcheck runs
  • Run Clean-up Logic on Docker Container's Shutdown/Killing?
  • PHP Application redirection cycle
  • Can't launch selenium tests inside container, WebDriverException:Chrome failed to start: exited abnormally
  • I am using windows OS.

  • Clean Docker /var/lib/docker/devicemapper
  • python3 tkinter ubuntu trusty does not work under virtual environment
  • A particular image is not getting pulled from Docker Hub - jwilder/nginx-proxy
  • Map public container port for few private in Rancher
  • put_archive with python-marathon docker app?
  • serving multiple docker microservices behind nginx proxy
  • One Solution collect form web for “how to install python package using tensorflow docker”

    After googling out I could find the solution. THe problem is with docker where containers cannot access the internet as DNS is not properly configured. I ran with –dns option in docker and it ran like a charm

    here is the command for ref
    docker run -p 8888:8888 -it –dns

    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.