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

What are the commands related to docker swarm cluster

2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

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

This article will explain in detail what are the commands related to docker swarm cluster. The editor thinks it is very practical, so I share it with you for reference. I hope you can get something after reading this article.

Docker swarm cluster related commands

# create cluster docker swarm init-- advertise-addr {local address} # get join cluster command (administrator node) docker swarm join-token manager# get join cluster command (ordinary node) docker swarm join-token worker# display node list docker node ls# display existing service docker service ls# display container docker service ps {service name} # create a service docker service create-- Replicas {number of instances}-name {service name}-p {host port}: {container internal port} my_image {startup instruction} # Delete a service docker service rm {service name} # modify the number of instances docker service scale {service name} = {number of services} # modify the instance using the image docker service update-- image {image name} {service name} # modify the instance Memory limit docker service update-- limit-memory {memory usage} {Service name} # modify instance cpu limit docker service update-- limit-cpu {memory usage} {Service name} about "what are the commands related to docker swarm cluster?" this article ends here. Hope that the above content can be helpful to you, so that you can learn more knowledge, if you think the article is good, please 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

Development

Wechat

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

12
Report