In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
docker how to view the container startup log, many novices are not very clear about this, in order to help you solve this problem, the following small series will explain in detail for everyone, there are people who need this can learn, I hope you can gain something.
docker How do I view container startup logs? The docker logs command allows you to view the container logs. According to the sharing of the author of the Jianshu website (https://www.jianshu.com/p/1eb1d1d3f25e), below we introduce the command to view the container log.
sudo docker logs -f -t --tail number of rows container name
Command Format:
$ docker logs [OPTIONS] CONTAINEROPTIONS:--details Show more information-f, --follow Trace Real-time logs--since string Show logs since a certain timestamp, or relative time, e.g. 40m (40 minutes)--tail string Show how many logs are displayed from the end of the log, default is all-t, --timestamps Show timestamp--until string Show logs since a certain timestamp, or relative time, e.g. 40m (40 minutes)
View logs for the last 30 minutes:
$ docker logs --since 30m CONTAINER_ID
View logs after a certain time:
$ docker logs -t --since="2019-08-02T13:23:37" CONTAINER_ID
View logs for a certain period of time:
$ docker logs -t --since="2019-08-02T13:23:37" --until "2019-08-03T12:23:37" CONTAINER_ID
Did reading the above help you? If you still want to have further understanding of related knowledge or read more related articles, please pay attention to the industry information channel, thank you for your support.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.