diff --git a/docs/install/containers.md b/docs/install/containers.md index d6f56e6cf..8f95923c7 100644 --- a/docs/install/containers.md +++ b/docs/install/containers.md @@ -77,20 +77,20 @@ docker run --rm \ --output harvest-compose.yml ``` -By default, the above command uses the harvest configuration file located in the current directory, denoted as `$(pwd)/harvest.yml`. However, you may want to use a harvest config from a different location. -??? question "What if my harvest configuration file is in a different path" - Suppose the path to your harvest configuration file is stored in a variable named `HARVEST_CONFIG_PATH` +By default, the above command uses the harvest configuration file(`harvest.yml`) located in the current directory. If you want to use a harvest config from a different location. +??? question "What if my harvest configuration file is somewhere else or not named harvest.yml" + Use the following docker run command, updating the `HYML` variable to point to your `harvest.yml` ```sh - export HARVEST_CONFIG_PATH="/opt/custom_harvest.yml" + HYML="/opt/custom_harvest.yml" \ docker run --rm \ - --entrypoint "bin/harvest" \ - --volume "$(pwd):/opt/temp" \ - --volume "${HARVEST_CONFIG_PATH}:${HARVEST_CONFIG_PATH}" \ - ghcr.io/netapp/harvest:latest \ - generate docker full \ - --output harvest-compose.yml \ - --config ${HARVEST_CONFIG_PATH} + --entrypoint "bin/harvest" \ + --volume "$(pwd):/opt/temp" \ + --volume "${HYML}:${HYML}" \ + ghcr.io/netapp/harvest:latest \ + generate docker full \ + --output harvest-compose.yml \ + --config "${HYML}" ``` `generate docker full` does two things: