VS Code devcontainers - what is the difference between remoteUser and containerUser?

Viewed 310

Reading the devcontainer.json reference, I still can't understand: https://code.visualstudio.com/docs/remote/devcontainerjson-reference

containerUser: Overrides the user all operations run as inside the container.
remoteUser: Overrides the user that VS Code runs as in the container (along with sub-processes like terminals, tasks, or debugging)

What is the difference between containerUser and remoteUser? When should I use one or the other? Can you provide examples?

Thanks!

0 Answers
Related