Code Monkey home page Code Monkey logo

docker-swarm-mode-getting-started's Introduction

Errata for the course:

20.10

Swarm Jobs!

  • As of Docker version 20.10 support for jobs has been added!
  • read the jobs docs here.
  • mode option has two new values:
    • replicated-job
    • global-job
  • jobs are run to completion
    • completion = return code 0
  • IMO comingling service and job concepts is somewhat confusing albeit they have many options in common.. but a service is an abstraction of a daemon or long-running process whereas a job is run once
    • A docker jobs or similar might be nice
      • But, mode works and avoids a slew of new docker commands and subcommands
    • Many service options aren't applicable, like restart-condition, update and rollback options
  • replicated-jobs use the replicas setting to specify how many
  • global-jobs run one per node (matching any placement constraints)
    • as nodes are added, each will have a task for each global-job

17.10

  • docker service commands no longer run detached by default as of 17.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, and service 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.

Refresh coming soon! (2nd edition)

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

Links

docker-swarm-mode-getting-started's People

Contributors

g0t4 avatar smartinov avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

docker-swarm-mode-getting-started's Issues

Unable to Connect to Docker Engine Inside the Vagrant VM

My setup:

  • Docker on Mac
  • Vagrant with Virtual Box running; m1, w1, w2 Ubuntu VMs (built using a clone of this project)

Problem:

  • When I run: export DOCKER_HOST=192.168.99.201 and then try running docker ps following error is thrown:
    Cannot connect to the Docker daemon at tcp://192.168.99.201:2375. Is the docker daemon running?

Even though I am able to ssh into the VM and run docker ps without issues

Is there a workaround for this?

Thanks

box-cutter/ubuntu1610 cannot be retrieved

Hi,

I tried to do vagrant up today or manually add the box and I could do it.
I get the menu to choose the provider, but I cannot download the box.

So vagrantfile is no working.

The requested URL returned error: 403 Forbidden

Hi,

When running vagrant up can't access the vagrant virtualbox? Do I need to update the links?

Thanks

`vagrant up m1 w1 w2
Bringing machine 'm1' up with 'virtualbox' provider...
Bringing machine 'w1' up with 'virtualbox' provider...
Bringing machine 'w2' up with 'virtualbox' provider...
==> m1: Box 'box-cutter/ubuntu1610' could not be found. Attempting to find and install...
m1: Box Provider: virtualbox
m1: Box Version: >= 0
==> m1: Loading metadata for box 'box-cutter/ubuntu1610'
m1: URL: https://vagrantcloud.com/box-cutter/ubuntu1610
==> m1: Adding box 'box-cutter/ubuntu1610' (v2.0.26) for provider: virtualbox
m1: Downloading: https://vagrantcloud.com/box-cutter/boxes/ubuntu1610/versions/2.0.26/providers/virtualbox.box
An error occurred while downloading the remote file. The error
message, if any, is reproduced below. Please fix this error and try
again.

The requested URL returned error: 403 Forbidden
`

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.