Skip to content

Commit

Permalink
Add MD docker commands to README (#451)
Browse files Browse the repository at this point in the history
  • Loading branch information
Y-- authored Nov 25, 2024
1 parent d1c7caf commit d53247f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,12 @@ Docker images are [available on Dockerhub](https://hub.docker.com/r/pgduckdb/pgd
docker run -d -e POSTGRES_PASSWORD=duckdb pgduckdb/pgduckdb:16-main
```

And with MotherDuck, you only need a [a MotherDuck access token][md-access-token] and then it is as simple as:
```shell
$ export MOTHERDUCK_TOKEN=<your personal MD token>
$ docker run -d -e POSTGRES_PASSWORD=duckdb -e MOTHERDUCK_TOKEN pgduckdb/pgduckdb:16-main -c duckdb.motherduck_enabled=true
```

Or you can use the docker compose in this repo:

```shell
Expand Down
6 changes: 6 additions & 0 deletions docker/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,12 @@ Use of this image is [the same as the Postgres image](https://hub.docker.com/_/p
docker run -d -e POSTGRES_PASSWORD=duckdb pgduckdb/pgduckdb:16-main
```

And with MotherDuck, it is as simple as:
```shell
$ export MOTHERDUCK_TOKEN=<your personal MD token>
$ docker run -d -e POSTGRES_PASSWORD=duckdb -e MOTHERDUCK_TOKEN pgduckdb/pgduckdb:16-main -c duckdb.motherduck_enabled=true
```

You can also use docker compose from duckdb/pg_duckdb:

```shell
Expand Down

0 comments on commit d53247f

Please sign in to comment.