- As of Docker version
20.10
support forjobs
has been added! - read the jobs docs here.
mode
option has two new values:replicated-job
global-job
jobs
are run tocompletion
completion
= return code 0
- IMO comingling
service
andjob
concepts is somewhat confusing albeit they have many options in common.. but aservice
is an abstraction of adaemon
orlong-running process
whereas ajob
is run once- A
docker jobs
or similar might be nice- But,
mode
works and avoids a slew of new docker commands and subcommands
- But,
- Many
service
options aren't applicable, likerestart-condition
,update
androllback
options
- A
replicated-job
s use thereplicas
setting to specify how manyglobal-job
s run one per node (matching any placement constraints)- as nodes are added, each will have a task for each
global-job
- as nodes are added, each will have a task for each
docker service
commands no longer run detached by default as of17.10
- This is nice because you get a progress indicator in the new interactive mode
- If you want to run detached simply pass
--detach
- Applies to
service create
,service update
,service rollback
, andservice scale
- For command examples before and after this change and a history of the change, check out this PR, it's great: docker/cli#525
Updated as of 17.10
Keep an eye out for future changes, this is the easiest spot for me to update.
I'm working on a refresh to this course to update it for changes since the 1st edition was published!
- It will be condensed, so some content won't make the cut.
- Fortunately, the vast majority of the current course is still applicable and thus you can always watch the expanded 1st edition (current course) after the refresh (2nd edition) comes out!
- Both are linked
- on my author page.
- and under Links Below
- Getting Stated with Docker Swarm (2nd edition):
- Status: WIP, eta May 2021
- Course: (Link Pending)
- Repo: g0t4/course2-swarm-gs
- Getting Stated with Docker Swarm Mode (1st edition)
- Status: current course
- Course: 1st edition Getting Started with Docker Swarm Mode
- Repo: g0t4/docker-swarm-mode-getting-started