aboutsummaryrefslogtreecommitdiff
path: root/doc/book/quick-start
diff options
context:
space:
mode:
authorP. Douglas Reeder <reeder.29@gmail.com>2024-04-10 16:42:10 -0400
committerP. Douglas Reeder <reeder.29@gmail.com>2024-04-10 16:42:10 -0400
commit0c3b198b226ebb9dabee7bcd3c8a6da7aa5afea4 (patch)
treebd94dd8ca6f908f2153a9eb831cad5b4c7e917e0 /doc/book/quick-start
parent33c2086d9e985059574302b42560e769f14587de (diff)
downloadgarage-0c3b198b226ebb9dabee7bcd3c8a6da7aa5afea4.tar.gz
garage-0c3b198b226ebb9dabee7bcd3c8a6da7aa5afea4.zip
Improves Quick Start for users not using Linux
Diffstat (limited to 'doc/book/quick-start')
-rw-r--r--doc/book/quick-start/_index.md25
1 files changed, 25 insertions, 0 deletions
diff --git a/doc/book/quick-start/_index.md b/doc/book/quick-start/_index.md
index 9619f388..de627cbb 100644
--- a/doc/book/quick-start/_index.md
+++ b/doc/book/quick-start/_index.md
@@ -85,6 +85,9 @@ metrics_token = "$(openssl rand -base64 32)"
EOF
```
+See the [Configuration file format](https://garagehq.deuxfleurs.fr/documentation/reference-manual/configuration/)
+for complete options and values.
+
Now that your configuration file has been created, you may save it to the directory of your choice.
By default, Garage looks for **`/etc/garage.toml`.**
You can also store it somewhere else, but you will have to specify `-c path/to/garage.toml`
@@ -111,6 +114,25 @@ garage -c path/to/garage.toml server
If you have placed the `garage.toml` file in `/etc` (its default location), you can simply run `garage server`.
+To create a Docker container of Garage from an image, run:
+
+```bash
+docker run \
+ -d \
+ --name garaged \
+ -p 3900:3900 -p 3901:3901 -p 3902:3902 -p 3903:3903 \
+ -v /etc/garage.toml:/path/to/garage.toml \
+ -v /var/lib/garage/meta:/path/to/garage/meta \
+ -v /var/lib/garage/data:/path/to/garage/data \
+ dxflrs/garage:v0.9.4
+```
+
+Under Linux, you can substitute `--network host` for `-p 3900:3900 -p 3901:3901 -p 3902:3902 -p 3903:3903`
+
+#### Troubleshooting
+
+Ensure your configuration file, `metadata_dir` and `data_dir` are readable by the user running the `garage` server or Docker.
+
You can tune Garage's verbosity by setting the `RUST_LOG=` environment variable. \
Available log levels are (from less verbose to more verbose): `error`, `warn`, `info` *(default)*, `debug` and `trace`.
@@ -131,6 +153,9 @@ It uses values from the TOML configuration file to find the Garage daemon runnin
local node, therefore if your configuration file is not at `/etc/garage.toml` you will
again have to specify `-c path/to/garage.toml` at each invocation.
+If you are running Garage in a Docker container, you can set `alias garage="docker exec -ti <container name> /garage"`
+to use the Garage binary inside your container.
+
If the `garage` CLI is able to correctly detect the parameters of your local Garage node,
the following command should be enough to show the status of your cluster: