From d53247f004b154dc81275e9c4b1184c792f4865c Mon Sep 17 00:00:00 2001 From: "Y." Date: Mon, 25 Nov 2024 09:51:13 -0500 Subject: [PATCH] Add MD docker commands to README (#451) --- README.md | 6 ++++++ docker/README.md | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/README.md b/README.md index 82d1ccf2..6ccd2ae3 100644 --- a/README.md +++ b/README.md @@ -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= +$ 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 diff --git a/docker/README.md b/docker/README.md index 21a7fd90..f9a0880a 100644 --- a/docker/README.md +++ b/docker/README.md @@ -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= +$ 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