| Fetching information From Running Containers | We can fetch information from running container by using this command |
docker ps
Or
docker container ls
|
|---|
| Command for fetching about every container | This command for fetching about every container |
docker container ls -a
Or
docker ps -a
|
|---|
| Command for container log | We can use this command to see the container log |
docker logs infinite |
|---|
| Command for ‘tail -f’ Containers’ Logs | With this command Container isn't running in the foreground, and if there isn't anything running in the foreground, Docker closes automatically. |
docker container logs infinite -f |
|---|
Command for Inspecting Containers
| This is the command use for inspecting containers |
docker container inspect infinite
docker container inspect --format '' $(docker ps -q) |
|---|
| Command for Containers Events | To obtain real-time events from the server, use docker events. |
docker system events infinite |
|---|
| Command for Public Ports | Use this command for finding a public port |
docker container port infinite |
|---|
| Command for Running Processes | We can use this commands for displaying the running processes in the container |
docker container top infinite |
|---|
| Command for Container Resource Usage | It displays a live stream of resources usage statics for containers |
docker container stats infinite |
|---|
| Commands for Inspecting changes to files or directories on a container’s filesystem | This command is used for inspecting changes to files or directories on a container’s filesystem
|
docker container diff infinite |
|---|