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 does docker swarm view error messages that service cannot start

2025-02-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

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

This article is about how docker swarm looks for error messages that service cannot start. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.

When you run the docker stack deploy-c xxxxx.yml stack_name command, you will sometimes encounter some services that cannot start the container properly. You can view the information by using the following command:

Docker service ps-- no-trunc {serviceName}

After executing the command, you will see an error message similar to the following:

[root@manager crs2sc] # docker service ps shd_cfg2-- no-trunc

ID NAME IMAGE NODE DESIRED STATE CURRENT STATE ERROR PORTS

Q878gbecak71uujkotzojak15 shd_cfg2.1 mongo:latest@sha256:472a6b9bc30cc086cdda92eb25f0ae0f78afccb4ae6d50be6c05c9bb0ac2ca14 worker1 Running Running 38 seconds ago

Xizbvq4h7kyl1eelomfzjg6bk\ _ shd_cfg2.1 mongo:latest@sha256:472a6b9bc30cc086cdda92eb25f0ae0f78afccb4ae6d50be6c05c9bb0ac2ca14 worker1 Shutdown Rejected 5 minutes ago "No such image: mongo:latest@sha256:472a6b9bc30cc086cdda92eb25f0ae0f78afccb4ae6d50be6c05c9bb0ac2ca14"

Z86jb8nbyamag0rvd5dhv8tbi\ _ shd_cfg2.1 mongo:latest@sha256:472a6b9bc30cc086cdda92eb25f0ae0f78afccb4ae6d50be6c05c9bb0ac2ca14 worker1 Shutdown Rejected 6 minutes ago "No such image: mongo:latest@sha256:472a6b9bc30cc086cdda92eb25f0ae0f78afccb4ae6d50be6c05c9bb0ac2ca14"

From the information, you can see that there is a problem with the docker image. Re-pull the image will solve the problem.

Thank you for reading! This is the end of this article on "how to check the error message that service cannot start" on docker swarm. I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, you can share it for more people to see!

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