๐’๐ž๐ญ๐ญ๐ข๐ง๐  ๐ฎ๐ฉ ๐๐ฒ๐ญ๐ก๐จ๐ง ๐ˆ๐ง๐ญ๐ž๐ซ๐ฉ๐ซ๐ž๐ญ๐ž๐ซ ๐š๐ง๐ ๐ซ๐ฎ๐ง๐ง๐ข๐ง๐  ๐๐ฒ๐ญ๐ก๐จ๐ง ๐‚๐จ๐๐ž ๐จ๐ง ๐ƒ๐จ๐œ๐ค๐ž๐ซ ๐‚๐จ๐ง๐ญ๐š๐ข๐ง๐ž๐ซ

Parth Patel
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๐Ÿค—

Keep Learning๐Ÿ’ซKeep Sharing๐Ÿค๐Ÿป

Linkedin Profile :-

Do clap if this article was helpful. Good Day!

--

--

Parth Patel

ARTH Learner | Bigdata โ€” Hadoop | Linux | Front-End Developer | Flask | Coding Enthusiast | Python | AWS | Ansible | Kubernetes