question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add support for one-off jobs in Docker Swarm

See original GitHub issue

Docker 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:closed
  • Created 2 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
frapellcommented, Apr 1, 2022

Hello, any progress on this? is that fix from @kinday good enough for submitting a PR ?

2reactions
pklejchcommented, May 6, 2021

Hi, sure, I could look into it, but I don’t know when I am going to have enough time 😉

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found