๐๐๐ญ๐ญ๐ข๐ง๐ ๐ฎ๐ฉ ๐๐ฒ๐ญ๐ก๐จ๐ง ๐๐ง๐ญ๐๐ซ๐ฉ๐ซ๐๐ญ๐๐ซ ๐๐ง๐ ๐ซ๐ฎ๐ง๐ง๐ข๐ง๐ ๐๐ฒ๐ญ๐ก๐จ๐ง ๐๐จ๐๐ ๐จ๐ง ๐๐จ๐๐ค๐๐ซ ๐๐จ๐ง๐ญ๐๐ข๐ง๐๐ซ
2 min readMar 15, 2021
To know about docker and its Basic Commands, Refer my previous Blog Article.
Now We are Moving Directly to the practical
1. Download the image which supports the python interpreter.
The Image I found is centos: 8, it supports a python interpreter.
Command used to download the image: docker pull centos:8
2. Now, Run the container using the centos image
Command used: docker run -it โ name myos2 centos:8
3. Download python3 using the DNF command
Command used: DNF install python3 -y
4. Check that python has installed or not
Command used: python3 -V
5. Create a python File and run it
vi hello.py
Now Save the File
and Run The File using Python
command :- python3 hello.py
Thank you for reading my article๐ค