Google News
logo
DevOps - Interview Questions
What is a Docker Container and how do you create it?
* A Docker container is an open-source software development platform that stores the code and all of its dependencies and runs the application quickly and reliably from one computing environment to the other.

* Docker containers are not specified to any particular infrastructure; they can run on any infrastructure, on any computer, and in any cloud.

* A Docker container image is a standalone, lightweight, and executable package of software that has everything to run the application such as code, system tools, runtime, system libraries, and settings.

Docker Containers can be created with the Docker image using the following command :
docker run -t -i <image name> <command name>
This will create and start the container.
 
If you want to check the list of all running containers with status on the host, use the following command:
docker ps -a
If you have any additional DevOps questions and are unable to find the answers, please do mention them in the comment section below. We’ll get back to you at the earliest.
Advertisement