Add support for one-off jobs in Docker Swarm
See original GitHub issueDocker Engine 20.10 introduced option to run one-off jobs in Docker Swarm (https://docs.docker.com/engine/release-notes/#version-2010), this is achieved by two new modes for Swarm service: replicated-job
and global-job
.
It would be nice to have this possibility when creating Swarm service in docker-py.
Related PR which brought support for those new modes into Docker CLI: https://github.com/docker/cli/pull/2262
Issue Analytics
- State:
- Created 2 years ago
- Comments:7 (2 by maintainers)
Top Results From Across the Web
Docker Swarm Jobs Walkthrough - Medium
Support for running “one-off” jobs in Docker Swarm is one of the most long awaited features in Swarm. The code will be included...
Read more >Running one-off jobs in Swarm (jaas) : r/docker - Reddit
I created this tool to run one-shot containers on Docker Swarm, it starts the container, then polls for the result and prints it...
Read more >Run a one-off task as a service in docker swarm - Stack Overflow
1 Answer 1 · You can either remove the old service or update it. If you want to ensure that it will be...
Read more >Deploy services to a swarm - Docker Documentation
Swarm services use a declarative model, which means that you define the desired state of the service, and rely upon Docker to maintain...
Read more >Running one off commands in swarm containers
I'm using a docker-compose.yml file along with docker stack deploy to deploy a web service, a database service and some other supporting ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hello, any progress on this? is that fix from @kinday good enough for submitting a PR ?
Hi, sure, I could look into it, but I don’t know when I am going to have enough time 😉