Docker Interview Questions
Sachin Agarwal
DevOps Specialist at Comcast | Databee | Author | DevOps Enthusiasts | Ex-Deloitte | Ex-IBM #AWS Certified #CKA #DevOps #Freelance #Trainer #Mentor #Blogger
- Suppose your host server has 2 GB space and your image size is 500 MB then is it possible to run more than 4 containers of this image on the host.
- How can you remove dangling images?
- How can I check details of each layer in a docker image like size, task and timestamp.
- How can I copy the token/config file inside a docker container without using docker command line.
- I have a three containers an application, database and middleware. How can these containers communicate with each other.
- There are lot of containers created by developers for the testing purpose. This takes up lot of disk space and memory. How can I automate the cleanup process.
- Can you explain me the Docker Registry?
- Have you ever used Docker Swarm. What are the different use-cases you can think of for the same.
- How will you fetch the local copy of image to create the containers.
- Is it possible to use restart policy and -rm flag together when starting a container?