Cloud 2
Cloud 2
virtualization to deliver software in packages called containers. Containers are isolated from one
another and bundle their own software, libraries, and configuration files; they can communicate
with each other through well-defined channels. All containers are run by a single operating system
kernel and therefore use fewer resources than a virtual machine.
• Docker Engine: It is a core part of docker, that handles the creation and management of
containers.
• Docker Image: It is a read-only template that is used for creating containers, containing the
application code and dependencies.
• Docker Hub: It is a cloud based repository that is used for finding and sharing the container
images.
• Docker Registry : It is a storage distribution system for docker images, where you can store
the images in both public and private modes.
Dockerfile?
The Dockerfile uses DSL (Domain Specific Language) and contains instructions for generating a
Docker image. Dockerfile will define the processes to quickly produce an image. While creating your
application, you should create a Dockerfile in order since the Docker daemon runs all of the
instructions from top to bottom.
(The Docker daemon, often referred to simply as “Docker,” is a background service that manages
Docker containers on a system.)
• It is a text document that contains necessary commands which on execution help assemble a
Docker Image.
client-server architecture. The Docker client talks with the docker daemon which helps in building,
running, and distributing the docker containers. The Docker client runs with the daemon on the
same system or we can connect the Docker client with the Docker daemon remotely. With the help
of REST API over a UNIX socket or a network, the docker client and daemon interact with each other.
Docker Image
It is a file, comprised of multiple layers, used to execute code in a Docker container. They are a set of
instructions used to create docker containers. Docker Image is an executable package of software
that includes everything needed to run an application.
Docker Container
Docker container is a runtime instance of an image. Allows developers to package applications with
all parts needed such as libraries and other dependencies. Docker Containers are runtime instances
of Docker images.
Docker Hub
Docker Hub is a repository service and it is a cloud-based service where people push their Docker
Container Images and also pull the Docker Container Images from the Docker Hub anytime or
anywhere via the internet.
docker ps
docker ps -a
docker ps -all
docker ps -s
docker container ls -s
docker container ls -q
docker ps -a -q
docker ps -aq
docker ps -a -f status=running
Image loading...
docker images
docker images -a
docker images -a
docker network ls
docker volume ls
docker login
docker info
docker version
exit
docker ps -a
docker images
docker ps
docker login
docker logout
docker system df
docker stats
touch example_dockerfile
FROM debian
The download will begin automatically. The duration will depend on your internet speed.
After restarting, a dialog box will appear. Click the “Stop Docker” button.
Enable Hyper-V
o Navigate to Settings > Update and Security > Recovery > Advanced Setup > Device
Configuration.
o Ensure the “Enable Turbo Boost on DC” option is marked. Save and exit.