Use the docker command of linux to apply the container engine
Editor to share with you the use of linux docker command application container engine, I hope you will learn a lot after reading this article, let's discuss it!
The docker command allows developers to package their applications and dependency packages into a portable container and publish them to any popular Linux machine.
Syntax format: docker [parameters]
Common parameters:
Ps displays a container with the status of running (Up). Cp copies files or directories from the container and sends a signal to the container. Default is SIGKILL.
Reference example
Kill all running containers:
[root@linuxcool ~] # docker kill $(docker ps-Q)
Delete containers that have been stopped:
[root@linuxcool ~] # docker rm `docker ps-a-q`
Log in to con03:
[root@linuxcool ~] # docker exec-it con03 / bin/bash
Stop con03:
[root@linuxcool ~] # docker stop con03
Enable con03:
[root@linuxcool ~] # docker start con03 has finished reading this article, I believe you have some understanding of using linux's docker command application container engine, want to know more about it, welcome to follow the industry information channel, thank you for reading!