Container Basics: Learn how to create, start, stop, and remove Docker containers.
Manage Docker Images: Understand how to pull, list, and remove images.
Inspect Containers: Dive deep into container details with Docker inspect.
Interactive Shell: Access and work inside running containers to update and install software.
Application Hosting: Host real-world applications like Ubuntu inside containers and expose them to the web.
Real-World Demos: Follow along as we show step-by-step how to set up and manage your environment.
1. Create a Docker Container
To create a new container from an image, but not start it:
docker container run ubuntu
2. Start a Docker Container
To start a stopped or newly created container:
docker start my_container
3. Stop a Docker Container
To stop a running container:
docker stop my_container
4. Remove a Docker Container
To remove a container that is stopped:
docker rm my_container
Force remove a running container:
docker rm -f my_container
5. List Docker Images
To list all Docker images on your system:
docker images
6. Inspect a Docker Container
To view detailed information about a specific container:
docker inspect my_container
7. Enter a Running Container (Attach to Shell)
To access the shell of a running container:
docker exec -it my_container /bin/bash
8. Inside the Container: Update and Install Packages
Once inside the container, you can update the package manager and install software:
apt update
apt install apache2 -y
10. Host an Application (e.g. Web Server)
Once inside the container, after installing ubuntu/Nginx or any web server:
service apache2 start
service apache2 status
11.Access the Application
To expose the application to the host machine:
curl http://container_IP
#dockerVsVM #container #containerization #dockerInHindi #DockerTutorials #dockerVsVM #docker#kubernetes#devops #jenkins #container #containerization #dockerInHindi #DockerTutorials #docker#docker#kubernetes#devops #docker#dockerVsVM #container #containerization #dockerInHindi #DockerTutorials #docker#docker#kubernetes#devops #technology #tutorial #devops #jenkins #jenkinstutorial #jenkinspipeline #deployment #learning #tech #career #interview #question #career #jenkins #cicd #linux #devopsvijay #devopsproject #devopstraining #devopstrainingvideos #cicd #sitereliability #devopsengineer #bashscripting #shellscripting#Jenkins#kubernetes #kubernetesIndia #devops #dockerVsVM #dockerArchitecture #container #containerization #dockerInHindi #DockerTutorials #docker #dockerHindi #Hindi
コメント