From 44b45ccdf53532ad9ad8c16c44fa2e089fc6b61b Mon Sep 17 00:00:00 2001 From: Ken Bingham Date: Tue, 29 Aug 2023 07:39:36 -0400 Subject: [PATCH] document verbose container args --- docker/README.md | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/docker/README.md b/docker/README.md index 1953d7ba..7ed1d3c4 100644 --- a/docker/README.md +++ b/docker/README.md @@ -120,6 +120,20 @@ This example uses [the included Docker Compose project](docker-compose.yml) to i 1. Access the demo server via your OpenZiti Network: [http://hello-docker.ziti](http://hello-docker.ziti) +#### Troubleshooting `openziti/ziti-host` + +You may pass additional args by supplying the `run-host` mode and args when the container is run. + +```bash +docker run \ + --name ziti-host \ + --rm \ + --network=my-docker-bridge \ + --env ZITI_IDENTITY_JSON="$(< /opt/openziti/etc/identities/my-ziti-identity.json)" \ + openziti/ziti-host \ + run-host --verbose=4 +``` + #### Docker Compose Examples for `openziti/ziti-host` Get a single, enrolled identity configuration from an environment variable. You could define the variable with an `.env` file in the same directory as `docker-compose.yml`. @@ -220,6 +234,23 @@ docker run \ openziti/ziti-edge-tunnel ``` +#### Troubleshooting `openziti/ziti-edge-tunnel` + +You may pass additional args by supplying the `run` mode followed by args when the container is run. + +```bash +docker run \ + --name ziti-tun \ + --network host \ + --privileged \ + --volume ${PWD}:/ziti-edge-tunnel/ \ + --volume "/var/run/dbus/system_bus_socket:/var/run/dbus/system_bus_socket" \ + --device "/dev/net/tun:/dev/net/tun" \ + --env ZITI_IDENTITY_BASENAME=ziti_id \ + openziti/ziti-edge-tunnel \ + run --verbose=4 +``` + #### Docker Compose Examples for `openziti/ziti-edge-tunnel` This example uses [the Docker Compose project](docker-compose.yml) included in this repo.