Open-Assistant icon indicating copy to clipboard operation
Open-Assistant copied to clipboard

Unknown flag: --build

Open Foxy6670 opened this issue 2 years ago • 3 comments

I tried running the command shown in the README to run the demo, docker compose up --build, but then I get this error:

unknown flag: --build

Keep in mind I'm using the rootless version of Docker, as to avoid using systemd.

Foxy6670 avatar Feb 05 '23 15:02 Foxy6670

Try Installing docker-compose package

ghost avatar Feb 05 '23 15:02 ghost

for me it also works when I do not add --build to the command

laudanum123 avatar Feb 05 '23 16:02 laudanum123

It's because you are using docker-compose v1 and you have to move to docker compose v2. See here in the FAQ. The linked Stack Overflow answer gives the fix. In short, you have to install the docker-compose-plugin, i.e., apt-get install docker-compose-plugin on Debian/Ubuntu.

GuilleHoardings avatar Feb 05 '23 17:02 GuilleHoardings

Closing this as it seems to have been answered, feel free to comment again if the solutions mentioned don't work

olliestanley avatar Feb 06 '23 21:02 olliestanley