Setting up python interpreter and running python code on docker image
Mar 11, 2021
In this article I want to write how we set python interpreter on the top of docker image. For this we have following steps:
Step1: Pull the Centos image using docker pull command-:
Step2: Launch the container using docker run command-:
Step3: Install python3 on this container:
Note: For centos we use yum command:
Step4: Start python interpreter using python3 command and write the code in interpreter.
In this way we launch python interpreter inside centos image.
Thank you ππ