These container-specific commands take either a container ID or container name as a parameter:
Command |
Description |
docker stats [container name/ID] [container name/ID] |
You can use this command to show the load status, such as CPU percentage, memory usage, and network traffic, for each container. |
docker logs [-f] [container name/ID] |
This command will be responsible for showing log output from the container. You can also use the -f option as like tail the -f command. |
docker inspect [container name/ID] |
You can use this command to dump all of the configuration information on the container in JSON format. |
docker port [container name/ID] |
This command will be used to display all available forwarding ports between the container host and the container. |
docker exec [-i] [-t] [container name/ID] |
You can use this command to execute a command to the target container. |