stable-diffusion-webui-docker icon indicating copy to clipboard operation
stable-diffusion-webui-docker copied to clipboard

unknown flag: --profile ? And my docker is latest?

Open lizekui opened this issue 2 years ago • 4 comments

My OS is Ubuntu 16.04, when I type docker compose --profile download up --build

returns:

unknown flag: --profile
See 'docker --help'.

Usage:  docker [OPTIONS] COMMAND

A self-sufficient runtime for containers

My software version is as follows:

$ docker --version
Docker version 20.10.7, build f0df350

$ docker-compose --version
docker-compose version 1.29.2, build 5becea4c

lizekui avatar Oct 22 '22 09:10 lizekui

docker compose not docker-compose

AbdBarho avatar Oct 22 '22 09:10 AbdBarho

well dear @AbdBarho , i indeed copy the command use docker compose --profile but return unknown flag: --profile ...

What is the ridiculous problem with my docker?

lizekui avatar Oct 22 '22 14:10 lizekui

docker-compose is the old v1 which does not have the flag.

docker compose is v2 which has the flag

what is your docker compose version?

related https://github.com/AbdBarho/stable-diffusion-webui-docker/issues/16#issuecomment-1242881694

AbdBarho avatar Oct 22 '22 14:10 AbdBarho

Ubuntu Linux 16.04 LTS reached the end of its five-year LTS window on April 30th 2021 and is no longer supported by its vendor, Canonical except through a paid annual Extended Security Maintenance (ESM). Your docker version (20.10.7) has been released on 2021-06-02 and almost for sure does not contain compose v2, because it has been release with 20.10.13 as a plugin to run alongside v1. Docker compose v1 does not support --profile flag.

What is the ridiculous problem with my docker?

Without updating system to more recent one supporting proper docker version there is nothing anybody can do to help you any further.

DevilaN avatar Oct 23 '22 20:10 DevilaN

$ docker -v
Docker version 20.10.21, build baeda1f
$ docker compose version
Docker Compose version v2.2.3
$ docker compose --profile download up --build
(root) Additional property name is not allowed

Although my docker compose version is changed to v2, it still reports an error:(root) Additional property name is not allowed

xiangcp avatar Oct 29 '22 01:10 xiangcp

@xiangcp update to latest docker compose, mine is 2.10.2

AbdBarho avatar Oct 29 '22 05:10 AbdBarho

Had the same issue with unknown flag --profile

Solution from another issue, worked for me:

sudo apt install docker-compose-plugin

shinyone avatar Oct 30 '22 07:10 shinyone

@shinyone your solution just save me! Thanks dear everyone~

lizekui avatar Oct 31 '22 06:10 lizekui

When I run sudo apt install docker-compose-plugin I get "No package docker-compose-plugin available."

spuliz avatar Nov 19 '22 18:11 spuliz

what are your versions? You need V2

$ docker --version
$ docker-compose --version

shinyone avatar Nov 20 '22 07:11 shinyone

have the same issue on my setup, my versions are

# docker-compose --version
Docker Compose version v2.13.0

# docker --version
Docker version 20.10.21, build baeda1f

# docker compose up --profile
unknown flag: --profile

webdevbyjoss avatar Dec 09 '22 15:12 webdevbyjoss

@webdevbyjoss maybe it is a typo but:

docker-compose

and

docker compose

are two different things

also, --profile [x] up, not up --profile [x]

AbdBarho avatar Dec 09 '22 15:12 AbdBarho

thnx for the comment, in my case the reported version is still the same

# docker compose version
Docker Compose version v2.13.0

webdevbyjoss avatar Dec 09 '22 15:12 webdevbyjoss

also, --profile [x] up, not up --profile [x]

Yes!! That was it!

# docker compose --profile [profile X] up

Thank you. I hope this will be useful for others.

webdevbyjoss avatar Dec 09 '22 15:12 webdevbyjoss

Thank you @shinyone !

JansenSmith avatar Jan 04 '23 16:01 JansenSmith

@AbdBarho

also, --profile [x] up, not up --profile [x]

This saved me! Thanks!!

alhabarneh avatar May 01 '23 17:05 alhabarneh

For me sudo apt install docker-compose-plugin didn't work. What did work was:

sudo apt install docker-compose-v2

hocop avatar Nov 26 '23 18:11 hocop

For me sudo apt install docker-compose-plugin didn't work. What did work was:对我来说 sudo apt install docker-compose-plugin 没有用。起作用的是:

sudo apt install docker-compose-v2

This saves me ! Thank you

C2jeremy avatar Apr 01 '24 00:04 C2jeremy