Giter Club home page Giter Club logo

Comments (6)

djmaze avatar djmaze commented on May 24, 2024

There is no check for DOCKER_CLI_EXPERIMENTAL. The above line sets the variable to enabled, executes the manifest command and checks the return code of the command via the if.

What error do you have exactly with the original code?

from shepherd.

AeroSteveO avatar AeroSteveO commented on May 24, 2024

I get an error message that docker manifest is only supported when experimental CLI features are enabled, despite having set the flag in the same way as shepherd does

administrator@bot-docker-03:~$ DOCKER_CLI_EXPERIMENTAL=enabled
administrator@bot-docker-03:~$ docker manifest inspect true 127.0.0.1:5000/wheatley
docker manifest inspect is only supported on a Docker cli with experimental cli features enabled
administrator@bot-docker-03:~$

I did however find that exporting the environment variable ended up making the command run correctly.

administrator@bot-docker-03:~$ export DOCKER_CLI_EXPERIMENTAL=enabled
administrator@bot-docker-03:~$ docker manifest inspect true 127.0.0.1:5000/wheatley
No such manifest: 127.0.0.1:5000/wheatley:latest

Though interestingly the docker manifest command is missing the containers on my local registry. Even those running on the local node.

administrator@bot-docker-03:~$ docker container ls
CONTAINER ID        IMAGE                             COMMAND             CREATED             STATUS              PORTS               NAMES
5f7a59a2b202        127.0.0.1:5000/triviabot:latest   "ant run"           3 hours ago         Up 3 hours                              botnet_triviabot.1.v6m0olawdie1bp100skszrcd8
administrator@bot-docker-03:~$ docker manifest inspect 127.0.0.1:5000/triviabot
no such manifest: 127.0.0.1:5000/triviabot:latest

Edit, ah, in my commands i was using the incorrect flag for insecure, adding that flag makes it work with my local registry.

administrator@bot-docker-03:~$ docker manifest inspect --insecure 127.0.0.1:5000/wheatley
{
        "schemaVersion": 2,
        "mediaType": "application/vnd.docker.distribution.manifest.v2+json",
        "config": {
                "mediaType": "application/vnd.docker.container.image.v1+json",
                "size": 4124,
                "digest": "sha256:61b1e9fd23346e6e0bc0643fa21321c0947a8a6cf0b9a74dff305758632a2387"
        },
        "layers": [
...

from shepherd.

djmaze avatar djmaze commented on May 24, 2024

So according to this, everything is working for you as expected. The first command does not work because you need to either export the variable or put the variable assignment directly in front of the command (as shepherd does). (Also, I am not sure what the true in your commandline is for.)

from shepherd.

AeroSteveO avatar AeroSteveO commented on May 24, 2024

This is the error that I'm getting from the docker manifest command when running the container:

Get https://127.0.0.1:5000/v2/wheatley/manifests/latest: dial tcp 127.0.0.1:5000: connect: connection refused

from shepherd.

AeroSteveO avatar AeroSteveO commented on May 24, 2024

Ahh i see whats going on, since all my containers reference the local registry via localhost:5000, the container running shepherd can't update them due to trying to look them up via that reference, 127.0.0.1:5000/wheatley works on all the nodes, but not on a container running on the node.

from shepherd.

stale avatar stale commented on May 24, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

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.