I am not sure if the -e also works with devcontainer.
I used it to map the user group and IDs in the docker container so that they would be the same owner. (for my docker vim env, not vscode)

  

      github.com
  

  
    haifeng-jin/ide/blob/master/keras/run.sh#L3-L4



      
      
          -e HOST_USER_ID=$(id -u $USER) \
          -e HOST_GROUP_ID=$(id -g $USER) \