-
Notifications
You must be signed in to change notification settings - Fork 122
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
docker compose -f FILE_PATH fails: unknown shorthand flag: 'f' in -f #6876
Comments
I believe we need a command right? According to the documentation https://docs.docker.com/compose/reference/#command-options-overview-and-help
|
Yeah, sorry, I trimmed that off with the rest of the -f args and forgot to put it back in for this report. I get it while using |
closing the issue |
Why is this closed? @bsousaa |
@bsousaa Why did you close this? |
Looks like this was closed by mistake. I have been unable to reproduce this myself, so any more insight into your environment you can provide would be helpful. |
Several of my devs (and myself) run into this on our new M1 Macbooks (not sure if that has any bearing). We all ran into this if the "docker-compose" plugin is NOT installed. When we install it ( |
It seems like the |
I believe I found the issue here and a proper workaround, maybe one of the docker devs can chime in on a better fix. Essentially, on install the symlink present in
I'm not sure why the installer would skip this, it worked on my M1 Mac, but not on a coworker's. It seems like it could be something on the mac blocking it, or maybe a regression earlier this year? |
|
CLI plugins also need to be symlinked as described in docker/for-mac#6876 (comment)
Had the exact same issue on Ubuntu 22.04.3. Installing |
At first, I used command which works fine in 2021: sudo apt install docker.io
sudo systemctl start docker
sudo systemctl enable docker
docker --version and meet this issue, |
@neersighted Were you able to find the correct Docker team? |
docker/compose#8986 (comment) seems to have worked for me. The error message is confusing, and the order of arguments should not matter (but it does). |
This is an issue with old docker compose plugin. |
I (and a coworker) are having the same (similar?) problem on MacOs. I've installed the latest Docker for Desktop and get this:
(Edit: I assume the above is supposed to work, maybe not, but I am getting the error described in the issue title) The note in "Scenario One" here didn't help me either (I did both the symlink and made sure "Automatically check configuration" is set in settings). |
I figured my issue out... some other local tool we use had set a |
Description
After installing Docker Dashboard on a fresh Macbook M1 Max, when I try to run a
docker compose
command with a-f PATH_TO_FILE
from the command line, docker fails with the following error:unknown shorthand flag: 'f' in -f
Examples:
Reproduce
docker-compose
installed).docker compose -f path/to/your/compose.yaml
Expected behavior
The stack is created.
docker version
Client: Cloud integration: v1.0.33 Version: 24.0.2 API version: 1.43 Go version: go1.20.4 Git commit: cb74dfc Built: Thu May 25 21:51:16 2023 OS/Arch: darwin/arm64 Context: default Server: Docker Desktop 4.20.1 (110738) Engine: Version: 24.0.2 API version: 1.43 (minimum version 1.12) Go version: go1.20.4 Git commit: 659604f Built: Thu May 25 21:50:59 2023 OS/Arch: linux/arm64 Experimental: false containerd: Version: 1.6.21 GitCommit: 3dce8eb055cbb6872793272b4f20ed16117344f8 runc: Version: 1.1.7 GitCommit: v1.1.7-0-g860f061 docker-init: Version: 0.19.0 GitCommit: de40ad0
docker info
Diagnostics ID
196C0AA9-CD1A-4199-A837-18652F38700A/20230613163359
Additional Info
No response
The text was updated successfully, but these errors were encountered: