Docker Theory 1
Docker Theory 1
Docker Theory 1
Containers are designed to isolate applications and their dependencies, ensuring that they can
run consistently across different environments. Whether the application is running from your
computer or in the cloud, the application behaviour remains the same.
Base Image: -
A base image is the image that is used to create all of your
container images. Your base image can be an official Docker image, such as
Centos, or you can modify an official Docker image to suit your needs, or you
can create your own base image from scratch.
Flask-app:
1.ls
2.cd . .
1. mkdir flask-app
2. ls
3. cd mkdir flask-app/
4. ls
5. vim app.py
6. rm vim app.py
7. git clone repo
8. pip- python package installer
9. docker build . -t flask-app:latest
10. docker images
11. docker run flask-app:latest
Node js App:
1. docker file
2. run
3. push to dockerhub
4. volume
5. networking
6. jenkins
7. SecOps
The command “docker container prune” is used to remove all stopped containers in docker.
https://t.me/+TKbM2D976Y05YjBl