Skip to content

Commit d6b164d

Browse files
authored
chore(docs): configure: add note about sudo -E (coder#697)
1 parent fb8d0fc commit d6b164d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

images/configure.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,11 @@ Note that the instructions provided include logic on whether the instructions
4747
should be re-run (and when) or if Coder should run the instructions only once.
4848
We strongly recommend including this logic at all times to minimize overhead.
4949

50+
> Any commands run with `sudo` will, by default, not include the environment
51+
> variables of your user. If you'd like to preserve your existing env variables,
52+
> [pass the `-E` flag to your `sudo`
53+
> invocation](https://man7.org/linux/man-pages/man8/sudo.8.html).
54+
5055
## Step 2: Add the config file to the image
5156

5257
Once you have a config file, update your image to use it by including the

0 commit comments

Comments
 (0)