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
Use the
docker run
command to start a new container and interact with it through the command line.command:
sudo docker run hello-world
Use the
docker inspect
command to view detailed information about a container or image.command:
sudo docker inspect [containerID]
Use the
docker port
command to list the port mappings for a container.command:
sudo docker port [containerID]
Use the
docker stats
command to view resource usage statistics for one or more containers.command:
sudo docker stats [containerID]
Use the
docker top
command to view the processes running inside a container.command:
sudo docker top [containerID]
Use 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.docker save:
save one or more images to a tar archive (streamed to STDOUT by default)command:
sudo docker save -o [pathtofile.tar] image_name
orsudo docker save image_name > [pathtofile.tar]
docker load:
load an image from a tar archive or STDINcommand:
sudo docker load -i [pathtofile.tar]
Reference:
Thanks for reading.
Also for your valuable time.
Keep reading.