fix docker compose usage

Former-commit-id: 59a5bd5d5c8d2a44e2dad26b74e77a45e109c8d6
This commit is contained in:
hiyouga
2024-06-13 00:07:48 +08:00
parent 8ad6a70a57
commit 7d3a9b10b7
3 changed files with 19 additions and 6 deletions

View File

@@ -423,6 +423,8 @@ llamafactory-cli webui
### Build Docker
#### Use Docker
```bash
docker build -f ./Dockerfile \
--build-arg INSTALL_BNB=false \
@@ -442,8 +444,12 @@ docker run -it --gpus=all \
llamafactory:latest
```
> [!TIP]
> Use Docker Compose to build image via `docker-compose up -d`.
#### Use Docker Compose
```bash
docker-compose up -d
docker-compose exec -it llamafactory bash
```
<details><summary>Details about volume</summary>