New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] running docker-compose for latest version returns unexpected character v2.14.2 #10126
Comments
Fixed by using v1.29.2. latest version doesn't work |
Error looks to come from the
I tried reproducing this issue on an Ubuntu machine, but didn't get the same issue (without a docker compose up -d --build
[+] Building 0.8s (6/6) FINISHED
=> [internal] load build definition from Dockerfile 0.1s
=> => transferring dockerfile: 81B 0.0s
=> [internal] load .dockerignore 0.0s
=> => transferring context: 2B 0.0s
=> [internal] load metadata for docker.io/library/nginx:alpine 0.0s
=> [1/2] FROM docker.io/library/nginx:alpine 0.1s
=> [2/2] RUN echo hello > out.txt 0.6s
=> exporting to image 0.1s
=> => exporting layers 0.1s
=> => writing image sha256:7fe49432325a15622b63ebb011465102f3ed96b9c90f6cffe041bd72709bdc7f 0.0s
=> => naming to docker.io/library/foo-web 0.0s
[+] Running 2/2
⠿ Network foo_default Created 0.1s
⠿ Container foo-web-1 Started 0.7s
docker-compose up -d --build
[+] Building 0.1s (6/6) FINISHED
=> [internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 81B 0.0s
=> [internal] load .dockerignore 0.0s
=> => transferring context: 2B 0.0s
=> [internal] load metadata for docker.io/library/nginx:alpine 0.0s
=> [1/2] FROM docker.io/library/nginx:alpine 0.0s
=> CACHED [2/2] RUN echo hello > out.txt 0.0s
=> exporting to image 0.0s
=> => exporting layers 0.0s
=> => writing image sha256:6255e9b45135f2d8dbae745e3ec6ee935d20c9347dafcb54361d6da1347e691c 0.0s
=> => naming to docker.io/library/foo-web 0.0s
[+] Running 1/1
⠿ Container foo-web-1 Started 0.7s |
So I run |
This is probably fixed by compose-spec/compose-go#336 |
Amazing! thank you @ndeloof , it actually got fixed |
Description
running docker-compose commands returns the following error for all docker-compose varaitions:
unexpected character "-" in variable name near "docker-compose up -d --build"
Steps To Reproduce
linux
sudo curl -L https://github.com/docker/compose/releases/latest/download/docker-compose-$(uname -s)-$(uname -m) -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
Compose Version
Docker Environment
Anything else?
No response
The text was updated successfully, but these errors were encountered: