Find the Best Cosmetic Hospitals

Explore trusted cosmetic hospitals and make a confident choice for your transformation.

“Invest in yourself — your confidence is always worth it.”

Explore Cosmetic Hospitals

Start your journey today — compare options in one place.

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 a DevOps/SRE/DevSecOps/Cloud Expert passionate about sharing knowledge and experiences. I have worked at <a href="https://www.cotocus.com/">Cotocus</a>. I share tech blog at <a href="https://www.devopsschool.com/">DevOps School</a>, travel stories at <a href="https://www.holidaylandmark.com/">Holiday Landmark</a>, stock market tips at <a href="https://www.stocksmantra.in/">Stocks Mantra</a>, health and fitness guidance at <a href="https://www.mymedicplus.com/">My Medic Plus</a>, product reviews at <a href="https://www.truereviewnow.com/">TrueReviewNow</a> , and SEO strategies at <a href="https://www.wizbrand.com/">Wizbrand.</a> Do you want to learn <a href="https://www.quantumuting.com/">Quantum Computing</a>? <strong>Please find my social handles as below;</strong> <a href="https://www.rajeshkumar.xyz/">Rajesh Kumar Personal Website</a> <a href="https://www.youtube.com/TheDevOpsSchool">Rajesh Kumar at YOUTUBE</a> <a href="https://www.instagram.com/rajeshkumarin">Rajesh Kumar at INSTAGRAM</a> <a href="https://x.com/RajeshKumarIn">Rajesh Kumar at X</a> <a href="https://www.facebook.com/RajeshKumarLog">Rajesh Kumar at FACEBOOK</a> <a href="https://www.linkedin.com/in/rajeshkumarin/">Rajesh Kumar at LINKEDIN</a> <a href="https://www.wizbrand.com/rajeshkumar">Rajesh Kumar at WIZBRAND</a> <a href="https://www.rajeshkumar.xyz/dailylogs">Rajesh Kumar DailyLogs</a>

Related Posts

Docker Tutorials: Docker Image – Understanding Dockerfiles instructions & options

Here’s a step-by-step tutorial for Dockerfile, including explanations and examples for each major command. Dockerfile Tutorial A Dockerfile is a text file containing instructions to build a…

Read More

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

Reference Rajesh Kumar I’m a DevOps/SRE/DevSecOps/Cloud Expert passionate about sharing knowledge and experiences. I have worked at Cotocus. I share tech blog at DevOps School, travel stories…

Read More

Docker Tutorials: Installation and Configurations

Docker Installation in Centos/RHEL Method -1: How to install Docker Community Edition via YUM? Step 1 – Install required packages. yum-utils provides the yum-config-manager utility, and device-mapper-persistent-data…

Read More

Docker Tutorials: How to Install Docker in Ubuntu?

Install Docker Engine in Ubuntu NOTE – All commands you must run as root user or add a current user into a linux group name called “docker”…

Read More

Docker Lab, Excercise & Assignment – 7 – Docker Volume

Below is a very detailed tutorial and lab manual for learning Docker Volumes, using the Ubuntu image for practical, hands-on labs. This covers all major types of…

Read More

Docker Lab, Excercise & Assignment – 4 – Docker Networking

Here’s an in-depth, step-by-step tutorial and lab manual for Docker Networking—starting from basics, covering all core concepts, and providing a hands-on guide to every feature and command….

Read More