Home Operation and Maintenance Docker How to check the reason why docker container stopped

How to check the reason why docker container stopped

Mar 31, 2020 pm 06:00 PM
docker stop reason Check

Docker How to troubleshoot the error when the container service stops? During the use of the container, if the service cannot be used, you need to troubleshoot the errors in the container and repair the operation.

How to check the reason why docker container stopped

How to check the reason why the docker container stopped

1. Docker ps -a queries the starting container instance Status, first determine whether the container is started

2. Docker port Check the port. If it is a rest interface, you can manually simulate the parameter call. Do not test the RPC interface

3. Docker logs Check the business log , determine whether it is a business abnormality

4. Docker is generally a microservice. In this case, you can check the monitoring information of the microservice monitoring center

5. If there is a call chain similar to Zipkin, it is Even better, you can see the calling information of the business process.

For example, docker error troubleshooting: Unable to enter the container. You can enter the self-built centos7 base, but you cannot enter the mysql distributed by rancher.

#docker exec -it 3c1d bashrpc 
error: code = 2 desc = oci runtime error: exec failed: container_linux.go:247: starting container 
process caused "process_linux.go:110: decoding init error from pipe caused \"
read parent: connection reset by peer\""
Copy after login

The reason for the error is that the new version 1.13.1-84 can be used normally after being reduced to 1.13.1-75.

For more related tutorials, please pay attention to the docker tutorial column on the PHP Chinese website.

The above is the detailed content of How to check the reason why docker container stopped. For more information, please follow other related articles on the PHP Chinese website!

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot Article Tags

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

How to export program with pycharm How to export program with pycharm Apr 18, 2024 am 12:09 AM

How to export program with pycharm

How to package project with pycharm How to package project with pycharm Apr 25, 2024 am 03:54 AM

How to package project with pycharm

Agile development and operation of PHP microservice containerization Agile development and operation of PHP microservice containerization May 08, 2024 pm 02:21 PM

Agile development and operation of PHP microservice containerization

Pi Node Teaching: What is a Pi Node? How to install and set up Pi Node? Pi Node Teaching: What is a Pi Node? How to install and set up Pi Node? Mar 05, 2025 pm 05:57 PM

Pi Node Teaching: What is a Pi Node? How to install and set up Pi Node?

What languages ​​does pycharm support? What languages ​​does pycharm support? Apr 18, 2024 am 10:57 AM

What languages ​​does pycharm support?

How to install deepseek How to install deepseek Feb 19, 2025 pm 05:48 PM

How to install deepseek

How to start golang program How to start golang program Apr 21, 2024 am 12:47 AM

How to start golang program

Docker completes local deployment of LLama3 open source large model in three minutes Docker completes local deployment of LLama3 open source large model in three minutes Apr 26, 2024 am 10:19 AM

Docker completes local deployment of LLama3 open source large model in three minutes

See all articles