Skip to content

Conversation

true1ann
Copy link

@true1ann true1ann commented Nov 2, 2024

The issue: original used docker compose instead of docker-compose, which lead to issues (docker compose does NOT support -f flag.)

other details:

BEFORE:

❯ sudo ./run.sh --model 7b --with-cuda
unknown shorthand flag: 'f' in -f
See 'docker --help'.

Usage:  docker [OPTIONS] COMMAND

A self-sufficient runtime for containers

Common Commands:
  run         Create and run a new container from an image
  exec        Execute a command in a running container
  ps          List containers
  ...

then i analyzed how run.sh was made, and added the change

AFTER:

❯ sudo ./run.sh --model 7b --with-cuda
WARN[0000] /home/<hidden>/projects/llamagpt/llama-gpt/docker-compose-cuda-ggml.yml: the attribute `version` is obsolete, it will be ignored, please remove it to avoid potential confusion
[+] Building 30.2s (4/28)
...

(i just made an install so it started compiling)

The issue: original used `docker compose` instead of `docker-compose`, which lead to issues (`docker compose` does NOT support -f flag.)
@jlssmt
Copy link

jlssmt commented Jan 6, 2025

docker compose is compose v2
docker-compose is deprecated
compose v2 also supports file flag (maybe your problem is related to this #165)

https://docs.docker.com/compose/releases/migrate/#what-are-the-differences-between-compose-v1-and-compose-v2

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

Successfully merging this pull request may close these issues.

2 participants