API / Docker Interview questions
1. What is a Docker?
Docker is a containerization platform which packages your application and all its dependencies together in the form of containers so as to ensure that your application works seamlessly in any environment, be it development, test or production. Docker containers, wrap...
2. What is a Container?
Container is a way to package applications with all the necessary dependencies and configuration. Containers are portable artifacts, easily shared and moved around.
3. Where do containers live?
Container repository. private repositories.
4. What is a Docker container?
Docker containers include the application and all of its dependencies. It shares the kernel with other containers, running as isolated processes in user space on the host operating system....
5. What are Docker Images?
Docker image is the source of Docker container. In other words, Docker images are used to create containers....
6. Mention few advantages of using Docker.
Application agility, Developer productivity, Easy modeling, Placement and affinity, Caching a cluster of containers, Operational efficiencies such as flexible resource sharing, Scalability, Better security, less access needed to work with the code running inside containers, and fewer software dep
7. What are the components of Docker?
The three main Docker components are: Docker Client performs Docker build pull and run operations to open up communication with the Docker Host. The Docker command then employs Docker API to call any queries to run....
8. What is meant by Virtualization?
Virtualization is the process of employing software (such as Hypervisor) to create a virtual version of a resource such as a server, data storage, or application. Virtualization lets you divide a system into a series of separate sections, each one...
9. Difference between virtualization and containerization.
Virtualization is an abstraction of a physical machine, while containerization is the abstraction of an application.
10. Explain the lifecycle of a Docker Container.
Some of the lifecycle processes include, Create container, Run container, Pause container, Unpause container, Start container, Stop container, Restart container, Kill container, Destroy container.
11. Mention a few Docker commands.
build , Builds a Docker image file. commit , creates a new image from container changes.
12. What is the difference between a Docker Image and a Docker Container?
A Docker Image is a read-only template that contains a set of instructions for creating a container. It includes the application code, libraries, dependencies, and environment variables....