Home / Tutorial /What is a Docker co...
Admin
2023-09-07
0 mins read
Similar Blogs
DevOps with AWS for Beginners: Core Concepts and Tools
0 mins read
2024-10-18
Introduction to DevOps: What is DevOps, Tools & Principles
0 mins read
2024-08-29
Essential Docker Commands - Cheat Sheet
0 mins read
2024-07-25
CICD And Its Best Practices
0 mins read
2023-09-07
DevOps a Buzz word or what?
0 mins read
2023-09-13
How do all the automation tools work together in a CICD flow?
0 mins read
2023-09-07
Which is among Puppet, Chef, SaltStack best CM tool
0 mins read
2023-09-07
Difference between Git and SVN - DevOps Interview Question
0 mins read
2023-09-07
What is CI? What is its purpose?
0 mins read
2023-09-07
Top 20 Jenkins Interview Questions and Answers - 2024
0 mins read
2024-03-22
Docker is a containerization technology that packages your application and all its dependencies together in the form of Containers to ensure that your application works seamlessly in any environment.
A container consists of an entire runtime environment: an application, plus all its dependencies, libraries and other binaries, and configuration files needed to run it, bundled into one package.
Containerizing the application platform and its dependencies eliminates any infrastructure differences and maintains consistency across environments.
They share the kernel with other containers, running as isolated processes in user space, on the host operating system.
Docker containers can be created by either creating a Docker image and then running it, or you can use Docker images that are present on the Docker hub.
We can use Docker image to create Docker container by using the below command:
docker run -t -i <image name> <command name>
This command will create and start Container.
Docker container can be run in two modes:
Attached: Where it will be run in the foreground of the system you are running, provides a terminal inside the container when -t option is used with it, where every log will be redirected to stdout screen.
Detached: This mode is usually run in production, where the container is detached as a background process and every output inside the container will be redirected to log files which can be viewed by the Docker logs command.
To check the list of all running containers with status on a host:
docker ps -a
To stop the Docker container:
docker stop <container ID>
To restart the Docker container, you can use:
docker restart <container ID>
INQUIRY
By tapping continuing, you agree to our Privacy Policy and Terms & Conditions
SkillAhead Solutions
Gurgaon
USA
1603, Capitol Avenue, Suite 413A, 2659, Cheyenne, WY 82001, USA
`Copyright © DevLabs Alliance. All rights Reserved`
|
Refund & Reschedule Policy
Privacy Policy
Terms of Use