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.

  • Run SpringBoot-based docker image return error message:Invalid or corrupt jarfile /app.jar
  • Docker read file from local system when container is running
  • How to set up connection between Docker containers using AWS Beanstalk and Spring Cloud Netflix
  • Setting Rails Environment for Apache by Environment Variable
  • Linking Containers / Building Images In Docker
  • how to build and run android apk on emulator using dockerfile
  • I am using windows OS.

  • Serving react app with NGINX on /admin instead of / loads files but does not render application
  • Datastore for scope “global” is not initialized
  • Docker log file not created
  • How is it possible for two identical Docker images to have different packages installed?
  • Docker image for project with separate client and server side codebase
  • Kubernetes node with high disk usage caused by docker overlay
  • 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.