MYHOSPITALNOW.COM

Find Trusted Doctors & Hospitals

Discover healthcare providers, compare hospitals, and explore treatment options worldwide.

Free Treatment Quotes • Doctor Search • Hospital Comparison

Find Healthcare Options

www.myhospitalnow.com

Docker Interview Questions and Answer Part – 28

What is a tag?

  • A reference to a registry
  • A reference to a repository
  • A reference to a specific image in a repository (Ans)
  • A reference to a specific image in a registry

Why are image layers read only?

  • So they can be compressed to reduce disk space
  • So we cannot write data inside a container
  • So they can be reused (Ans)

Which of the following container types doesn’t use namespace isolation?

  • Windows Server Container
  • Hyper-V Container (Ans)
  • Linux Container

Which of the following provides the initial container file system?

  • Volume(s)
  • Network drive
  • Host file system
  • Image (Ans)

Database data should be stored in:

  • Image layer
  • Volume (Ans)
  • Container Read/Write layer

In the past, to find software, we often used standalone web sites hosted by the creator of the software. Now, with Docker, how do we discover software?

  • Package Managers
  • Still use standalone web sites
  • Docker Engine
  • App Stores
  • Docker Hub (Ans)

In the past, we usually downloaded software in some sort of package to install it, for example a zip file or MSI file. Now, with Docker, how do we download
software?

  • docker pull (Ans)
  • docker start
  • docker ps
  • docker download

When executing the command “docker pull microsoft/aspnet:4.6.2” what is the “microsoft” piece called?

  • User (Ans)
  • Image
  • Tag
  • Registry
  • Repository

On a computer, with either Linux or Windows installed, there’s a program that runs in a privileged mode that abstracts hardware and provides services to other
processes. What is this program?

  • User
  • User space
  • Kernel
  • Kernel space (Ans)
  • Application

After stopping a container, how do you run the application in it again?

  • docker run
  • docker start (Ans)
  • docker pull
  • docker restart

What’s the primary purpose of docker-compose?

  • Build containers, volumes, and networks (Ans)
  • Build images
  • Pull and push images
  • Cleanup containers.
  • Build containers

What does the -d in docker run -d nginx do?

  • Runs an attached container
  • Runs a container that will display output from the NGINX process in our console
  • Deletes the container when we stop the NGINX proces
  • Runs a detached container (Ans)

Where does the file system come from for a container?

  • From the machine the container is started on
  • From the image used to create the container (Ans)
  • From another special container called a parent container
  • From a remote network share hosted through Hyper-V

Which of the following allows you to share the host file system with a process in a container?

  • Network drive(s)
  • Image(s)
  • symlinks
  • Volume(s) (Ans)

How can you see the output of a process running in a detached container?

  • docker output
  • docker Is
  • docker run -it
  • docker exec -it
  • docker logs (Ans)

What does docker commit do?

  • Copies files into a container
  • Creates a container
  • Duplicates a container
  • Creates a snapshot of a running container for rolling back
  • Creates an image (Ans)

Which of the following is a good analogy for creating a container?

  • Installing software (Ans)
  • Downloading software
  • Extracting a zip file
  • Running software

How can processes in different containers talk to each other when using docker-compose?

  • Embedded DNS for Service Discovery (Ans)
  • Pass IP addresses in configuration files
  • Pass IP addresses in environment variables
  • Linking containers

What does an image contain?

  • The user space files (Ans)
  • Only an application’s files
  • Both the user and kernel space files
  • The kernel space files
  • The operating system

Removing an image is akin to what in traditional software management?

  • Deleting an installer file or zip file (Ans)
  • Uninstalling an application
  • Restarting an application
  • Stopping an application

Find Trusted Cardiac Hospitals

Compare heart hospitals by city and services — all in one place.

Explore Hospitals
I'm Rajesh Kumar, a DevOps, SRE, DevSecOps, Cloud, and Platform Engineering expert passionate about sharing practical knowledge, real-world experiences, and industry best practices. I have worked at Cotocus and regularly write about technology, travel, investing, health, product reviews, and digital marketing through my various platforms. I publish technical articles at DevOps School, travel stories at Holiday Landmark, stock market insights at Stocks Mantra, health and fitness guidance at My Medic Plus, product reviews at TrueReviewNow, and SEO and digital marketing strategies at Wizbrand.

Related Posts

Azure Devops Pipeline YAML Example

This page shows a minimal Azure Pipelines YAML file that builds a Docker image with the Docker@2 task on a Microsoft-hosted Ubuntu agent each time code is…

Read More

Docker Tutorials: Docker Image – Example and Sample Programs of Dockerfile

This page collects sample Dockerfiles that build an Ubuntu-based Apache image and show how CMD, ENTRYPOINT, EXPOSE, ARG, ENV, COPY and USER behave. Below the examples you…

Read More

Kubernetes: Pull an Image from a Private Registry using Yaml and Helm File

Kubernetes pulls images from a private registry using a kubernetes.io/dockerconfigjson Secret. A Pod references that Secret through imagePullSecrets, either directly or through its ServiceAccount. This page shows…

Read More

Docker Training Agenda: A Hands-On Learning Path from Containers to Registries and Networking

This revised Docker training agenda turns the original outline into a practical, modern learning path for beginners and early-career DevOps engineers. It maps each module to hands-on outcomes, core commands, and common implementation decisions.

Read More

Install Sonatype Nexus with Docker: RM2/RM3 Commands, Validation Steps, and Important Caveats

A structured, production-minded rewrite of the original 2016 Docker setup for Sonatype Nexus Repository Manager 2 and 3. Includes command examples, a workflow diagram, and clear warnings about outdated tags/endpoints.

Read More

Virtualization in DevOps: Using Vagrant, Docker, and Cloud Platforms Together

This guide explains how VM-based workflows, containers, and cloud platforms complement each other in DevOps. It includes a practical workflow, trade-off table, and command examples for day-to-day use.

Read More