Comments (5)
Yes, looks like the latest additions to the compose spec to allow specifying this as required are backward incompatible (or at least how it normalizes it) 🤔
Does it work it you use docker stack config
instead of docker compose config
? Or perhaps (depending on your use-case) it would even be possible to skip the intermediate compose config
from cli.
No I need to use it like as follows, example:
docker compose -f docker-compose.base.yml docker-compose.project.yml config | docker stack deploy -c - httpd
So I cannot use stack config
.
The question is, what is causes this error here? Is it the additional "required: true" element?
from cli.
No I need to use it like as follows, example:
docker compose -f docker-compose.base.yml docker-compose.project.yml config | docker stack deploy -c - httpd
So I cannot use stack config.
Hm, but bothdocker stack config
and docker stack deploy
support multiple files, so I was curious why that didn't work; https://docs.docker.com/reference/cli/docker/stack/config/#examples
The question is, what is causes this error here? Is it the additional "required: true" element?
Yes; the schema used by docker stack deploy
and previous versions of compose spec accepted a string (or array of strings) for env_file
; this new format changes it to an array of objects/structs({ "path": <string>, "required": <bool>}
)
from cli.
I don't remember the needs exactly for using docker compose config
instead of docker stack config
, but I think it had to do with the fact that stack config
relies on some older version or syntax, because it does not implement the compose-spec
.
For example, it lacks the extends
feature (moby/moby#31101).
So I hope there will be a fix for `docker stack deploy' , similar to what has been done in a recent issue where also a compose change was not backwards compatible: #4859
from cli.
This is probably related to:
docker/compose#11591
docker/compose#11598
docker/compose#11604
In todays Docker 25.0.5 the issue is fixed.
But maybe you want to support the --no-interpolate
mode in future?
from cli.
Related Issues (20)
- docker push doesn't work for registry with url prefix.
- "docker run" does not allow command arguments containing spaces HOT 1
- docker-cli broken in v26.1.1 with entrypoint is invalid. Keeps hanging forever. HOT 1
- `docker run` throws error if an env var contains whitespace HOT 2
- Docker volumes are not being cleaned up automatically on the host when the associated container gets deleted from the host HOT 2
- docker should fail if config file is invalid
- Running docker create does not create a new container HOT 3
- I believe docker is less functional because SHELL variables take precedence over .env files or --env-file HOT 2
- Resolve critical and high vulnerabilities in node:lts-bookworm base image HOT 2
- Docker login will not contain port when requesting token HOT 1
- Ability to create Volume Groups for managing multiple related volumes.
- docker images cannot see crictl pulled images HOT 1
- Docker build does not work HOT 3
- My container automatically exited same docker image i have used in a another host machine their it is working fine HOT 4
- docker run -v on Windows for volume mount works via cli but not via script calling same command
- Setting up docker with Hetzner + Ubuntu 2204 HOT 2
- False address already in use HOT 3
- CI: remove "experimental" checks, as they may be redundant
- Docker Swarm deploy with array failed message HOT 1
- The issue of Docker always timeout when pulling images 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 cli.