Giter Club home page Giter Club logo

Comments (9)

djmaze avatar djmaze commented on May 24, 2024

That sounds like a docker bug to me.

@gitdeath Can you try just updating your service manually with docker service update --image=<IMAGE> <SERVICE> and see if the problem occurs as well?

from shepherd.

gitdeath avatar gitdeath commented on May 24, 2024

This is how I've always done it in the past and it works just fine. I suspect is has something to do with shepherd being a container without capabilities. I will run shepherd with --cap-add=all and see if that allows this to work.

That sounds like a docker bug to me.

@gitdeath Can you try just updating your service manually with docker service update --image=<IMAGE> <SERVICE> and see if the problem occurs as well?

from shepherd.

gitdeath avatar gitdeath commented on May 24, 2024

This is how I've always done it in the past and it works just fine. I suspect is has something to do with shepherd being a container without capabilities. I will run shepherd with --cap-add=all and see if that allows this to work.

That sounds like a docker bug to me.
@gitdeath Can you try just updating your service manually with docker service update --image=<IMAGE> <SERVICE> and see if the problem occurs as well?

Running Shepherd with --cap-add=all didn't help.

from shepherd.

djmaze avatar djmaze commented on May 24, 2024

Well.. You could also run the shepherd script directly on the host.. That should work in principle. Then you can see if it makes a difference.

from shepherd.

gitdeath avatar gitdeath commented on May 24, 2024

I think I found the problem. The docker cli version in the container build doesn't meet the requirements to use --cap-add= in the command line.

bash-5.0# docker service update --cap-add=NET_ADMIN <service name>
unknown flag: --cap-add
bash-5.0# docker version
Client: Docker Engine - Community
 Version:           19.03.8

The required cli version is 20.10

from shepherd.

gitdeath avatar gitdeath commented on May 24, 2024

Looks like this is due to Dockerhub environment variable setting for the ARM image.

ARM = ENV DOCKER_VERSION=19.03.8
ARM64 = ENV DOCKER_VERSION=20.10.7
AMD64 = ENV DOCKER_VERSION=20.10.7

from shepherd.

djmaze avatar djmaze commented on May 24, 2024

Ah, you are using it on ARM. Well.. That makes it a different story.

The official armhf docker builds have been broken since 19.03. And as far as I heard, it seems they won't be coming back.

That's why I built an image on my old arm machine manually some time ago. I guess we could use that for shepherd's armhf builds as well.

from shepherd.

gitdeath avatar gitdeath commented on May 24, 2024

Well my fix was to redeploy my swarm as arm64. :-)

from shepherd.

djmaze avatar djmaze commented on May 24, 2024

FYI, mazzolino/shepherd:latest is now based on docker 20.10 on all architectures (including armhf).

from shepherd.

Related Issues (20)

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.