Skip to content

Commit

Permalink
Correct bind mount for profiles.yml in documentation (#6641)
Browse files Browse the repository at this point in the history
  • Loading branch information
mirnawong1 authored Dec 17, 2024
2 parents 5980a47 + 716e3f2 commit d61fc8f
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion website/docs/docs/core/docker-install.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,23 @@ docker pull ghcr.io/dbt-labs/<db_adapter_name>:<version_tag>
### Running a dbt Docker image in a container

The `ENTRYPOINT` for dbt Docker images is the command `dbt`. You can bind-mount your project to `/usr/app` and use dbt as normal:

```
docker run \
--network=host \
--mount type=bind,source=path/to/project,target=/usr/app \
--mount type=bind,source=path/to/profiles.yml,target=/root/.dbt/profiles.yml \
<dbt_image_name> \
ls
```

Or

```
docker run \
--network=host \
--mount type=bind,source=path/to/project,target=/usr/app \
--mount type=bind,source=path/to/profiles.yml,target=/root/.dbt/ \
--mount type=bind,source=path/to/profiles.yml.dbt,target=/root/.dbt/ \
<dbt_image_name> \
ls
```
Expand Down

0 comments on commit d61fc8f

Please sign in to comment.