Comments (6)
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.
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.
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.
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.
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.
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)
- Switch default branch from `master` to `main`
- Can't update some services: no such manifest HOT 9
- This seems like a perfectly valid way to deploy this seeing as it seems a bit inconsistent documentation wise HOT 2
- armhf support HOT 2
- Update containers in other DockerSwarm stacks HOT 1
- Shepherd updates back and forth between sha version and latest HOT 16
- How does it determine if there is an update or not? HOT 5
- latest does not exist or it is not available HOT 10
- Latest not available or does not exist HOT 10
- Auto Image delete HOT 6
- Multiple Registries HOT 1
- Crazymax cron cotainer not starting HOT 1
- Excessive amount of image pulls HOT 7
- Allow insecure-registries HOT 5
- Cannot access to INSECURE registry while adding WITH_INSECURE_REGISTRY to true HOT 1
- [Question] Default docker auth for private registry HOT 4
- Docker Swarm - cannot service with update multiple replicas HOT 3
- Request: Notification on completion HOT 5
- Looking for a new maintainer HOT 25
- Service gets stuck when calling "docker service update" and won't progress HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from shepherd.