What is Docker?
Docker is an open-source containerization platform through which you can pack your application and all its dependencies into a standardized unit called a container.
Containers are lightweight, which makes them portable, and they are isolated from the underlying infrastructure and from each other.
You can run the Docker image as a Docker container on any machine where Docker is installed without depending on the operating system.
What is Docker image?
Its 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. This images informs how a container should instantiate, determining which software components will run and how.
Docker Container is a virtual environment that bundles application code with all the dependencies required to run the application. The application runs quickly and reliably from one computing environment to another.
What is Docker container?
The Docker container is a lightweight and executable package of software. allows developers to package applications with all the required libraries and other dependencies.
Docker containers are runtime instances of Docker images.
A container contains all the requirements for an application. So, that application can be run in an isolated way.
What is Docker Engine?
Docker Engine is an open-source containerization technology for building and containerizing your applications.
Docker Engine acts as a client-server application with:
A server with a long-running daemon process dockerd.
APIs specify interfaces that programs can use to talk to and instruct the Docker daemon.
A command-line interface (CLI) client docker.
The CLI uses Docker APIs to control or interact with the Docker daemon through scripting or direct CLI commands. Many other Docker applications use the underlying API and CLI. The daemon creates and manages Docker objects, such as images, containers, networks, and volumes.
Why use Docker?
Docker is a platform for developing, deploying, and running applications in containers. Containers are isolated environments that contain everything an application needs to run, including code, runtime, system tools, system libraries, and settings.
OR
It provides a viable, cost-effective alternative to hypervisor-based virtual machines, so you can use more of your server capacity to achieve your business goals. Docker is perfect for high-density environments and for small and medium deployments where you need to do more with fewer resources.
What is Dockerfile?
A Dockerfile is a text file that contains instructions for building a Docker image. Docker images are used to create Docker containers, which are isolated, lightweight, and portable execution environments for applications.
Dockerfile are made up of a series of commands, each of which tells Docker how to build the image. The commands are executed in order, and each one creates a new layer in the image. The final layer is the image that is used to create containers.
What is Docker hub?
Docker Hub is a container registry built for developers and open-source contributors to find, use, and share their container images. With Hub, developers can host public repos that can be used for free or private repos for teams and enterprises.
Most used commands in Docker:
docker images
docker ps
docker -d
docker login
docker run
docker start
docker stop
docker restart
docker rm
docker rmi
docker build
docker exec
docker info
docker image prune
docker --help
docker push
docker pull
docker log
#Happy Learning...!