docker view log

login server

docker ps

This command is to view all running services

explain in turn

First column: container id

The second column: image name (here I also use the service name)

The third column: the directory

Fourth column: Startup time

Fifth column: Status

Sixth column: ip port

Seventh column: container name

docker logs -f container id

container id

This will dynamically print the log

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325680760&siteId=291194637