mirror of
https://github.com/itzg/docker-minecraft-server.git
synced 2026-11-10 02:37:09 +00:00
Update CF_API_KEY example for docker run (#2060)
This commit is contained in:
1 parent
0599fa64c2
commit
2de3efea15
1 file changed
+3
-3
@@ -626,10 +626,10 @@ To manage a CurseForge modpack automatically with upgrade support, pinned or lat
|
|||||||
> environment:
|
> environment:
|
||||||
> CF_API_KEY: '$$11$$22$$33aaaaaaaaaaaaaaaaaaaaaaaaaa'
|
> CF_API_KEY: '$$11$$22$$33aaaaaaaaaaaaaaaaaaaaaaaaaa'
|
||||||
> ```
|
> ```
|
||||||
> If you use `docker run` you will need to escape the `$` with a `\`.
|
> If you use `docker run` you will need to make sure to use single quotes:
|
||||||
> Example:
|
>
|
||||||
> ```shell
|
> ```shell
|
||||||
> docker run ... -e "CF_API_KEY=\$11\$22\$33aaaaaaaaaaaaaaaaaaaaaaaaaa"
|
> docker run ... -e CF_API_KEY='$11$22$33aaaaaaaaaaaaaaaaaaaaaaaaaa'
|
||||||
> ```
|
> ```
|
||||||
>
|
>
|
||||||
> To avoid exposing the API key, it is highly recommended to use a `.env` file, which is [loaded automatically by docker compose](https://docs.docker.com/compose/environment-variables/set-environment-variables/#substitute-with-an-env-file). `$`'s in the value still need to escaped with a second `$` and the variable needs to be referenced from the compose file, such as:
|
> To avoid exposing the API key, it is highly recommended to use a `.env` file, which is [loaded automatically by docker compose](https://docs.docker.com/compose/environment-variables/set-environment-variables/#substitute-with-an-env-file). `$`'s in the value still need to escaped with a second `$` and the variable needs to be referenced from the compose file, such as:
|
||||||
|
|||||||
Reference in new issue
Block a user