t0075
(Alexander T)
July 21, 2021, 11:18am
1
Update to docker-compose: v2.0.0-beta.6
docker version: 20.10.7
I had scripts using the ‘-c’ (context) option flag, like in:
docker-compose -p ka_dev -c testserver up --build -d frontend backend db
Everything worked fine last week. After update of Docker, I get
unknown shorthand flag: ‘c’ in -c
Do you have the same problem?
BTW: Solution is to use ‘–context’ instead of ‘-c’ . But strange that a shorthand flag got lost…
ahokanson
(Alex Hokanson)
July 21, 2021, 12:58pm
2
Hmm. I’m not seeing anything that sticks out in the changelog of v2.0.0-beta.6
→ v2.0.0-beta.5
. Do you remember what version you were on before?
ahokanson
(Alex Hokanson)
July 21, 2021, 1:32pm
3
Please file a ticket at GitHub - docker/compose-cli: Easily run your Compose application to the cloud with compose-cli and we can help you further. Please also include any other information, like docker info
output and the previous version you were on.
t0075
(Alexander T)
October 28, 2021, 11:08am
4
Hello guys. I updated to the docker/docker-compose version (Docker version 20.10.8, build 3967b7d, Docker Compose version v2.0.0) and now I get error messages when I try to use the “-c” or “–context” flags:
unknown flag: --context
In July 21, I got the messge “ unknown flag: -c
” but I could go on with --context, now this option is gone also. Does anyone have information about this?
rimelek
(Ákos Takács)
October 28, 2021, 11:35am
5
There is no --context
or -c
in Docker Compose 2.0. The following still works on Linux and Mac:
DOCKER_CONTEXT=contextname docker-compose up -d