Skip to content
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

unknown shorthand flag: 'f' in -f #20

Closed
nref opened this issue Mar 29, 2023 · 3 comments
Closed

unknown shorthand flag: 'f' in -f #20

nref opened this issue Mar 29, 2023 · 3 comments

Comments

@nref
Copy link

nref commented Mar 29, 2023

I get the error in the title when running make up. Ubuntu 22.04 LTS.

sudo apt install docker
...
~/repos/yew-actix-template$ make up
docker compose -f docker/docker-compose.yaml up
unknown shorthand flag: 'f' in -f
See 'docker --help'.
@nref nref changed the title unknown shorthand flag: 'f' in -f See 'docker --help'. unknown shorthand flag: 'f' in -f Mar 29, 2023
@darioalessandro
Copy link
Member

darioalessandro commented Mar 29, 2023

Hey @slater1 I suspect that this is due to the docker version that ubuntu ships with.

I am using:

darioalessandro@MacBook-Pro-di-Dario ~ % docker --version
Docker version 20.10.17, build 100c701

I recommend installing docker following the instructions here: https://docs.docker.com/desktop/install/ubuntu/

Let me know if this helps 😄

@nref
Copy link
Author

nref commented Mar 29, 2023

Hm, I've got a newer version

$ docker --version
Docker version 20.10.21, build 20.10.21-0ubuntu1~22.04.2

I did sudo apt remove docker docker-desktop docker-compose and sudo apt purge docker-desktop, followed the instructions you linked, and now it works.

$ docker --version
Docker version 23.0.2, build 569dd73

TLDR: Don't use default packages. (What else is new?)

Thanks for your help.

@nref nref closed this as completed Mar 29, 2023
@darioalessandro
Copy link
Member

Glad it worked!!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants