0% found this document useful (0 votes)
73 views5 pages

What Is Docker Image?

Docker is a platform to run isolated applications securely using kernel containerization features. It is more efficient than hypervisors as it uses the host kernel rather than creating its own. Docker images are used to create containers, and are composed of layers stored in registries like Docker Hub. Docker containers include the application and dependencies, running isolated in user space on the host operating system. Docker Hub is a cloud-based registry for storing and distributing container images.

Uploaded by

Sarat Chandra
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
73 views5 pages

What Is Docker Image?

Docker is a platform to run isolated applications securely using kernel containerization features. It is more efficient than hypervisors as it uses the host kernel rather than creating its own. Docker images are used to create containers, and are composed of layers stored in registries like Docker Hub. Docker containers include the application and dependencies, running isolated in user space on the host operating system. Docker Hub is a cloud-based registry for storing and distributing container images.

Uploaded by

Sarat Chandra
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 5

What is Docker?

Docker is a platform to run each application isolated and securely.


Internally it achieves it by using kernel containerization feature.

What is the advantage of Docker over hypervisors?

Docker is light weight and more efficient in terms of resource uses


because it uses the host underlying kernel rather than creating its own
hypervisor.

What is Docker image?

I will suggest you to go with the below mentioned flow:

Docker image is the source of Docker container. In other words, Docker images are used
to create containers. Images are created with the build command, and they’ll produce a
container when started with run. Images are stored in a Docker registry such as
registry.hub.docker.com because they can become quite large, images are designed to
be composed of layers of other images, allowing a minimal amount of data to be sent
when transferring images over the network.

What is Docker container?

This is a very important question so just make sure you don’t deviate from the topic and
I will advise you to follow the below mentioned format:

Docker containers include the application and all of its dependencies, but share the kernel
with other containers, running as isolated processes in user space on the host operating
system. Docker containers are not tied to any specific infrastructure: they run on any
computer, on any infrastructure, and in any cloud.
Now explain how to create a Docker container, Docker containers can be created by either
creating a Docker image and then running it or you can use Docker images that are
present on the Dockerhub.

What is Docker hub?

Answer to this question is pretty direct.

Docker hub is a cloud-based registry service which allows you to link to code repositories,
build your images and test them, stores manually pushed images, and links to Docker
cloud so you can deploy images to your hosts. It provides a centralized resource for
container image discovery, distribution and change management, user and team
collaboration, and workflow automation throughout the development pipeline.

How is Docker different from other container technologies?

According to me, below, points should be there in your answer:

Docker containers are easy to deploy in a cloud. It can get more applications running on
the same hardware than other technologies, it makes it easy for developers to quickly
create, ready-to-run containerized applications and it makes managing and deploying
applications much easier. You can even share containers with your applications.

What is Docker Swarm?

You should start this answer by explaining Docker Swarn.

Docker Swarm is native clustering for Docker. It turns a pool of Docker hosts into a single,
virtual Docker host. Docker Swarm serves the standard Docker API, any tool that already
communicates with a Docker daemon can use Swarm to transparently scale to multiple
hosts.

I will also suggest you to include some supported tools:

 Dokku
 Docker Compose
 Docker Machine
 Jenkins

What is Dockerfile used for?

 This answer, according to me should begin by explaining the use of Dockerfile.


 Docker can build images automatically by reading the instructions from a
Dockerfile.

 Now I will suggest you to give a small definition of Dockerfle.


 A Dockerfile is a text document that contains all the commands a user could call
on the command line to assemble an image. Using docker build users can create
an automated build that executes several command-line instructions in succession.

Can I use json instead of yaml for my compose file in Docker?

You can use json instead of yaml for your compose file, to use json file with compose,
specify the filename to use for eg:
docker-compose -f docker-compose.json up

Q10. Tell us how you have used Docker in your past position?

Explain how you have used Docker to help rapid deployment. Explain how you have
scripted Docker and used Docker with other tools like Puppet, Chef or Jenkins.

If you have no past practical experience in Docker and have past experience with other
tools in a similar space, be honest and explain the same. In this case, it makes sense if
you can compare other tools to Docker in terms of functionality.

Q11. How to create Docker container?

I will suggest you to give a direct answer to this.

We can use Docker image to create Docker container by using the below command:
1 docker run -t -i command name

This command will create and start a container.

You should also add, If you want to check the list of all running container with the status
on a host use the below command:
1 docker ps -a
Q12. How to stop and restart the Docker container?

In order to stop the Docker container you can use the below command:
1 docker stop container ID

Now to restart the Docker container you can use:


1 docker restart container ID

Q13 How far do Docker containers scale?

Large web deployments like Google and Twitter, and platform providers such as Heroku
and dotCloud all run on container technology, at a scale of hundreds of thousands or even
millions of containers running in parallel.

Q14. What platforms does Docker run on?

I will start this answer by saying Docker runs on only Linux and Cloud platforms and then
I will mention the below vendors of Linux:

 Ubuntu 12.04, 13.04 et al


 Fedora 19/20+
 RHEL 6.5+
 CentOS 6+
 Gentoo
 ArchLinux
 openSUSE 12.3+
 CRUX 3.0+

Cloud:

 Amazon EC2
 Google Compute Engine
 Microsoft Azure
 Rackspace

Note that Docker does not run on Windows or Mac.

Q15. Do I lose my data when the Docker container exits?

You can answer this by saying, no I won’t lose my data when Docker container exits, any
data that your application writes to disk gets preserved in its container until you explicitly
delete the container. The file system for the container persists even after the container
halts.
Q16. Mention some commonly used Docker command?

Below are some commonly used Docker commands:

You might also like