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

How to reverse check the cause after the failure of docker CCS deployment

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

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

How to find out the reason after the failure of docker CCS deployment? The event list of applications and services records the key operation log information of applications and service operations, which can quickly locate the reasons for the failure of application and service deployment.

1. For example, after the application is deployed, report "Unable to find a node that satisfies the following conditions [port xxxx (Bridge mode)]"

When the container uses port mapping (docker run-p xxxx:xxxx or ports declaration in the compose template), a port is created on the host and the specified port of the container is accessed through NAT. If the port on the host is occupied by a container or system process, it will cause the port allocation to fail.

Because cluster management checks all containers to prevent port configuration conflicts, even if there are no running containers, if port mappings have been declared. The corresponding host port is also marked as occupied.

The solution is to clear the container or process that occupies the port, or to adjust the host port of the container port mapping to avoid conflicts

2. Query Docker Engine log

Sometimes due to system reasons, Docker Engine can not create, delete, start or stop the container properly. We need to query the Docker Engine log to troubleshoot the information.

First, you need to locate the node where the problem occurs. After SSH logs in to the specified node, execute the following command to view the Docker Engine log

Ubuntu 14.04:less / var/log/upstart/docker.log

CentOS 7.x:journalctl-r-u docker

The container cloud is implemented by deploying container services on cluster servers through docker technology. It is powerful and easy to use. With tens of thousands of Linux images, it can be easily used as a cluster service, and VPC can be built freely and easily.

As a senior professional cloud computing service provider and cloud security service provider in the industry, it is committed to providing cloud servers for Internet enterprise users and enterprise users in traditional industries. Its products have the characteristics and advantages of "security and stability, easy to use, high service availability, high performance-to-price ratio" and are designed to be customized for enterprises to meet the needs of rich and diversified application scenarios.

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