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

Publicado el: 19 julio 2021
en el canal de: 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 ...  


En esta página del sitio puede ver el video en línea Docker Python Tutorial #5: Installing Python Libraries into Docker container, Dockerfile de Duración hora minuto segunda en buena calidad , que subió el usuario Red Eyed Coder Club 19 julio 2021, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 22,935 veces y le gustó 135 a los espectadores. Disfruta viendo!