Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

The method of viewing logs in docker Cluster Container

2025-04-08 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/03 Report--

Today Xiaobian shared with you is the docker cluster container view log method, view the cluster log, you can log in to your container cloud Web console, select the cluster, click "View log" in the pop-up window, you can get the log information of the cluster operation.

From the container list, you can obtain the container and its corresponding node information; from the cluster node list, click the specified node to obtain the corresponding node monitoring information.

Check the logs of container restart in docker swarm cluster, which can be found in linux system log. For centos, you can check the following command

cat /var/log/messages | grep "dockerd.* exceeded"

docker Container logs are generally stored under/var/lib/docker. You can use the following command to view the file size of each log.

ls -lh $(find /var/lib/docker/containers/ -name *-json.log)

The container logs can be viewed with the docker logs command.

sudo docker logs -f -t --tail number of rows container name

Container cloud products are implemented by deploying Kubernetes Engine on cluster servers through docker technology. It has tens of thousands of Linux images, powerful functions, easy to use, and can be used as cluster services. It is free to easily build a Private Cloud and freely choose network billing methods.

As a senior professional cloud computing service provider and cloud security service provider in the industry, it is committed to providing Cloud Virtual Machine for the majority of Internet enterprise users and enterprise users in traditional industries. Its products have the characteristics and advantages of "security and stability, simple and easy to use, high service availability and high cost performance." It is specially customized for enterprises to go to the cloud and can meet the rich and diversified application scenarios of users.

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.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report