Browse Source
devcontainer fixes (#688 )
* adding runargs section to fix docker access from devcontainer to host
* updating integrated terminal settings to match with the most recent settings.json scheme
* updating base image to most recent dotnet sdk version
Co-authored-by: Steve Smith <steve@kentsmiths.com>
main
Engin Polat
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
11 additions and
2 deletions
.devcontainer/Dockerfile
.devcontainer/devcontainer.json
@ -5,6 +5,7 @@
#-------------------------------------------------------------------------------------------------------------
#-------------------------------------------------------------------------------------------------------------
FROM mcr.microsoft.com/dotnet/sdk:7.0
FROM mcr.microsoft.com/dotnet/sdk:7.0
# This Dockerfile adds a non-root user with sudo access. Use the "remoteUser"
# This Dockerfile adds a non-root user with sudo access. Use the "remoteUser"
# property in devcontainer.json to use it. On Linux, the container user's GID/UIDs
# property in devcontainer.json to use it. On Linux, the container user's GID/UIDs
# will be updated to match your local UID/GID (when using the dockerFile property).
# will be updated to match your local UID/GID (when using the dockerFile property).
@ -15,10 +15,18 @@
/ / C o m m e n t o u t t o c o n n e c t a s r o o t u s e r . S e e h t t p s : / / a k a . m s / v s c o d e - r e m o t e / c o n t a i n e r s / n o n - r o o t .
/ / C o m m e n t o u t t o c o n n e c t a s r o o t u s e r . S e e h t t p s : / / a k a . m s / v s c o d e - r e m o t e / c o n t a i n e r s / n o n - r o o t .
/ / m a k e s u r e t h i s i s t h e s a m e a s U S E R N A M E a b o v e
/ / m a k e s u r e t h i s i s t h e s a m e a s U S E R N A M E a b o v e
"remoteUser" : "vscode" ,
"remoteUser" : "vscode" ,
"runArgs" : [
"-v" ,
"/var/run/docker.sock:/var/run/docker.sock"
] ,
/ / S e t * d e f a u l t * c o n t a i n e r s p e c i f i c s e t t i n g s . j s o n v a l u e s o n c o n t a i n e r c r e a t e .
/ / S e t * d e f a u l t * c o n t a i n e r s p e c i f i c s e t t i n g s . j s o n v a l u e s o n c o n t a i n e r c r e a t e .
"settings" : {
"settings" : {
"terminal.integrated.shell.linux" : "/bin/bash"
"terminal.integrated.profiles.linux" : {
"bash" : {
"path" : "bash" ,
"icon" : "terminal-bash"
} ,
} ,
} ,
} ,
/ / A d d t h e I D s o f e x t e n s i o n s y o u w a n t i n s t a l l e d w h e n t h e c o n t a i n e r i s c r e a t e d .
/ / A d d t h e I D s o f e x t e n s i o n s y o u w a n t i n s t a l l e d w h e n t h e c o n t a i n e r i s c r e a t e d .