Docker — Task-7.2 B | Arth |

Gaurav Sharma
Mar 14, 2021

--

Task Description

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

Pre-requisite

For pre-requisites like how to install docker, how to launch docker container etc. go to given article.

Steps

Step 1 — Install python3 in the container.

If you face any issue in installing the python3, run below commands in the base OS —

#firewall-cmd --zone = public --add-masquerade --permanent#firewall-cmd --reload#systemctl restart docker

For more details go to below link —

Step 2 — Write python script

Step 3 — Run the code

We can see that code is running fine.

!!!Thanks For Reading!!!

--

--