$ docker service update --rollback --update-delay 0s my_web
#Disconnect a running service from a network, use the --network-rm flag.
docker service update --network-rm my-network my-web
#Deploy a new stack or update an existing stack(dab & yml) docker stack deploy --compose-file docker-compose.yml vossibility
#Create service using Template
docker service create --name hosttempl --hostname="{{.Node.Hostname}}-{{.Node.ID}}- {{.Service.Name}}" busybox top
If your configuration is split between multiple Compose files, e.g. a
base configuration and environment-specific overrides, you can combine these by passing them to docker-compose config with the -f option and redirecting the merged output into a new file.