🔅Setting up Python Interpreter and running Python Code on Docker Container

Jayesh Kumar
Dec 1, 2020

--

🌀 7.2.B: Docker Task

We need to install the python3 on the docker container on the RHEL 8

First we would install the docker on RHEL 8 using:

# yum install docker-ce — nobest

Then we would start the docker service:-

# systemctl enable docker

# docker run -it ubuntu:20.10

Or if the OS is already there start it:

# systemctl start docker

# docker attach <docker image name>

Step 1

Install the python3 using

# apt-get install python3

# vim scr.py

# python3 scr.py

Step 2

Python script to print numbers from 1–5

--

--

Jayesh Kumar
Jayesh Kumar

Written by Jayesh Kumar

Btech ECE pursuing student ....Arth Learner

No responses yet