Python Program inside DOCKER container| Docker Tutorial for Beginners Part-2 | Docker Crash Course

Опубликовано: 01 Сентябрь 2024
на канале: Elfin Code
74
3

Will create python program using nano editor inside container, below are the steps:

create container in -d (detach mode)
docker run -d --name my-python-container python sleep infinity

open the interactive bash shell from the container
docker exec -it my-python-container /bin/bash

update the apt
apt update

install nano editor
apt install nano

create python file using nano editor
mkdir app
cd app
nano myapp.py

Timecodes
0:00 Elfin Code
0:10 Agenda
1:04 Creating Docker Container
9:08 Closing Notes
13:00 End

1] Object Oriented Programming in Python Course
   • Object Oriented Programming using Pyt...  

2] Pandas Beginners Course
   • How to convert Pandas DataFrame to Di...  

3] Dictionary Datatype Beginners Course
   • How to ACCESS values from a NESTED Di...  

4] List Datatype Course
   • List Operations Or Methods in #python...  

5] PySpark Course
   • Python PySpark Tutorial Part 1 | How ...  

6] Design Patterns Course
   • What is Singleton Design Pattern in #...  

7] Generative AI Course
   • What is Generative AI & LangChain | L...  

8] File Handling and Operations Course For Beginners
   • File Handling in Python Beginners (Fu...  

9] Regex Python Tutorial For Beginners
   • RegEx Python Tutorial  

#programming #dockerguide #dockertutorial #container #deployment #kubernetes #docker