Docker
Docker is a software platform that allows you to build, test, and deploy applications quickly. Docker packages software into standardized units called containers that have everything the software needs to run including libraries, system tools, code, and runtime. Using Docker, you can quickly deploy and scale applications into any environment and know your code will run.
Tasks -
As you have already installed Docker in the previous day's tasks, now is the time to run Docker commands.
Use the
docker run
command to start a new container and interact with it through the command line. [Hint: docker run hello-world]Use the
docker inspect
command to view detailed information about a container or image. - Usedocker image
command to view the existing images and use inspect to view the information about the imageUse the
docker port
command to list the port mappings for a container. - In order to do so, we need to create a container.Steps to create a container -
docker run -d -p 8000:80 nginx
, here we are creating an nginx container with port mapping 8000:80Use the
docker stats
command to view resource usage statistics for one or more containers.Use the
docker top
command to view the processes running inside a containerUse the
docker save
command to save an image to a tar archive.Use the
docker load
command to load an image from a tar archive.
Repo - https://github.com/Aman-Awasthi/90DaysOfDevOps
Thanks you :)