Create service in mode replicated-set in a docker-swarm cluster #12474
Unanswered
arkangelv69
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Ask a Question!
Hello:
Do you know if replicated-set mode is supported when creating services?
When creating a service through the interface, I only see that replicated and global mode are supported.
But in principle, when creating it through the API, there is no problem and it is created correctly, although later in the interface it appears as if it had been created globally.
{ "Labels": {}, "Mode": { "ReplicatedJob": { "MaxConcurrent": 1, "TotalCompletions": 1 } }, "Name": "stream-recorder-1", "TaskTemplate": { "ContainerSpec": { "Args": [], "Command": [ "command" ], "Dir": "dir", "Env": [], "Image": "my-image:latest", "Labels": {} }, "RestartPolicy": { "Condition": "on-failure", "Delay": 10000000000, "MaxAttempts": 10, "Window": 0 } } }
Regards
Beta Was this translation helpful? Give feedback.
All reactions