Container-specific commands

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 ...

Get Mastering Spring Boot 2.0 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.