Common commands for Docker service based on Docker swarm

Source: Internet
Author: User
Tags docker swarm

Docker service is a declarative, scalable, load-balanced application. Docker service is a user-oriented application, while Docker swarm is an IT-oriented node cluster.

Docker service is often run on the basis of Docker swarm.


Common commands for Docker service:
Docker Service Create--name myservice-p 8080:8080--replicas 5 an_image Description, create a Docker service with 5 copies
Docker Service LS Docker service PS myservice Docker Service inspect--pretty myservice service update ... docker E Docker service RM myservice Docker Service Extension command:
Docker Service scale myservice=7 equivalent to

Docker Service Update--replicas 7 MyService Docker service Networks related commands:
Docker Network create-d overlay my_ntwk Docker network LS Docker service create--name myservice --network my_nt Wk-p 8080:8080--replicas 5 an_image Docker service inspect--pretty myservice Docker service update--image New_image:ve Sion --update-parallelism 2 --update-delay 10s myservice Docker service PS MyService


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.