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.
Use the doc
through the command line.ker run
command to start a new container and interact with it
docker run -it ubuntu
Use the docker inspect
command to view detailed information about a container or image.
For example:
docker ps
docker inspect <container_id_or_name>
Use the docker port
command to list the port mappings for a container.
docker port <container_id_or_name>
Use the docker stats
command to view resource usage statistics for one or more containers.
You can specify one or more container IDs or names to monitor. For example:
bashCopy codedocker stats <container_id_or_name> [<container_id_or_name>...]
Use the docker top
command to view the processes running inside a container.
bashCopy codedocker top <container_id_or_name>
Use the docker save
command to save an image to a tar archive.
bashCopy codedocker save -o <output_file.tar> <image_name> [<image_name>...]
Use the docker load
command to load an image from a tar archive.
bashCopy codedocker load -i <input_file.tar>