Open brianbrookes-wk opened 1 year ago
I believe we need a command right? According to the documentation https://docs.docker.com/compose/reference/#command-options-overview-and-help
docker compose [OPTIONS] COMMAND
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 config
or up
(only two I tried).
docker compose -f path/to/your/compose.yaml config
or docker compose -f path/to/your/compose.yaml up
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 (brew install docker-compose
) this issue goes away.
It seems like the compose
plugin is not getting the sim link setup correctly. But that is just a guess at this point. I have not had any others hit me up with this situation.
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 /usr/local/lib/docker
isn't being created. In fact, the whole directory is absent. We completely fixed the issue by running the following two commands:
sudo mkdir -p /usr/local/lib/docker
sudo ln -s /Applications/Docker.app/Contents/Resources/cli-plugins /usr/local/lib/docker/cli-plugins
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?
FYI @brianbrookes-wk @neersighted
/usr/local/lib/docker
shouldn't exist on macOS, the symlink goes in ~/.docker/cli-plugins
. Given this seems to be the symlink, let me see if I can find the Docker team that owns this and ask them to take a look.
Had the exact same issue on Ubuntu 22.04.3. Installing docker-compose-plugin
fixed it.
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, then, I install the docker again according official suggestion: https://docs.docker.com/engine/install/ubuntu/#install-using-the-repository, I even don't uninstall the origin version. and it fixed my problem.
@neersighted Were you able to find the correct Docker team?
@ricardograca-scratch and @flyq solutions are for Linux and not OSX.
https://github.com/docker/compose/issues/8986#issuecomment-1015065858 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. You download with brew the newer plugin and set it up in config to use the brew version.
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
docker info
Diagnostics ID
196C0AA9-CD1A-4199-A837-18652F38700A/20230613163359
Additional Info
No response