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