Docker Python Tutorial #5: Installing Python Libraries into Docker container, Dockerfile

Publié le: 19 juillet 2021
sur la chaîne: Red Eyed Coder Club
22,935
135

This Docker Python Tutorial video is about how to install Python libraries into a Docker container.
I used Dockerfile, and build a new container. Also I shown how to set a tag to a container.

To install a Python library to a Docker Container we can perform the standard pip install command with exclamation mark at the front:

!pip install requests

Also to install a Python package we can invoke a Terminal, and then use pip as usual.
But the problem is the same - the Docker container you want to install Python library in won't save its state. And each time the container will be started up you need to install the libraries again.

To avoid this tedious work we can use Dockerfile - a config file that defines what commands should be performed and what Python libraries should be installed to the Docker container.

Also I'll show how to set a tag to a Docker container - it's something like an alias for the container.

It's the fifth video from a small series about Docker for Python and Data Science.


Follow me @:
Telegram: https://t.me/red_eyed_coder_club
Twitter:   / codereyed  
Facebook: https://fb.me/redeyedcoderclub

---

Red Eyed Coder Club (RED) channels is the best place to learn Python programming:
   / @redeyedcoderclub  

#docker #dockertutorial #dockerpython #redeyedcoderclub #red


✴️✴️✴️ Python Docker for Data Science Playlist ✴️✴️✴️

1. Docker installation on Ubuntu based Distro:
   • Docker Python Tutorial #1: How to install ...  

2. How to use Docker containers:
   • Docker Python Tutorial #2: First Docker Co...  

3. How to copy file to a Docker container:
   • Docker Python Tutorial #3: Copying files t...  

4. How to use Docker volumes:
   • Docker Python Tutorial #4: Docker Volume t...  

5. Dockerfile: How to install Python libraries into container:
   • Docker Python Tutorial #5: Installing Pyth...  

6. How to use Docker Compose:
   • Docker Python Tutorial #6: Docker Compose ...  


Sur cette page du site, vous pouvez voir la vidéo en ligne Docker Python Tutorial #5: Installing Python Libraries into Docker container, Dockerfile durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur Red Eyed Coder Club 19 juillet 2021, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 22,935 fois et il a aimé 135 téléspectateurs. Bon visionnage!