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)
- The --no-color flag is not supported with docker compose up HOT 2
- flaky test: TestPromptForConfirmation/case=reader_closed HOT 7
- cannot `docker stop` (SIGINT?) a tail -f /dev/null command
- Docker build is not recognising the `-e` flag for the echo command HOT 2
- When creating or starting a container, there is a prompt indicating that the container has failed to start. HOT 2
- "OTEL_RESOURCE_ATTRIBUTES" in .env is ignored when using docker compose HOT 2
- Docker push for single arch not work with containerd storage HOT 3
- Account for aliases when running plugin hooks
- volume-subpath does not work for docker service HOT 1
- Inconsistent JSON output in `docker context ls --format json` HOT 3
- Slack link in `CONTRIBUTING.md` is invalid HOT 1
- Docker fails to provide DNS/name/alias to containers in a overlay network when is created with IPv6 HOT 2
- Could new aliaess be added to mirror existing and which start with 'doc' for example, so can see the docker aliases that are defined?
- Docker service logs are not returned in chronological order HOT 1
- Docker push missing visibility setting HOT 1
- Warning: Kernel Does Not Support cpuset or Cgroup Not Mounted
- docker rmi <image:tag> deletes both amd64 and arm64 builds on Apple Silicon HOT 1
- sysctl issues after upgrade from 25.0.4 to 26.0.0 HOT 1
- Proposal: Adding `docker init` Command to Docker CLI HOT 1
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.