You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You can override the default configuration during the *first* initialization with variables starting with **IPFCONFIG** and *_* as separators, which will be passed directly to `ipfs config`
69
+
70
+
For example:
71
+
```shell
72
+
docker run --rm -e IPFSCONFIG_Swarm_EnableAutoRelay=true -e IPFSCONFIG_Addresses_Swarm=[\"/ip4/0.0.0.0/tcp/4002\",\"/ip6/::/tcp/4002\"] ipfs/go-ipfs:latest
73
+
```
74
+
75
+
Some important notes:
76
+
- The names are case sensitive. `IPFSCONFIG_FooBar=true` and `IPFSCONFIG_foobar=true` are not the same
77
+
- Arrays must use escaped double quotes, like `IPFSCONFIG_FooBar=[\"test\"]`
78
+
- Syntactically valid config will **not** cause any error, even if it does anything. `IPFSCONFIG_zzz_abcds=true` wil be written to the config
79
+
- Invalid variables will be ignored, like `IPFSCONFIG_foobar_=true`
80
+
- Invalid values will faill initialization, like `IPFSCONFIG_foobar=trues`
0 commit comments