mirror of
https://github.com/Microsoft/vscode
synced 2024-10-04 02:14:06 +00:00
fix: launching code-oss in docker containers (#183123)
This commit is contained in:
parent
af8abe785d
commit
f9480e290f
|
@ -75,6 +75,12 @@ if [ "$IN_WSL" == "true" ] && [ -z "$DISPLAY" ]; then
|
|||
code-wsl "$@"
|
||||
elif [ -f /mnt/wslg/versions.txt ]; then
|
||||
code --disable-gpu "$@"
|
||||
elif [ -f /.dockerenv ]; then
|
||||
# Workaround for https://bugs.chromium.org/p/chromium/issues/detail?id=1263267
|
||||
# Chromium does not release shared memory when streaming scripts
|
||||
# which might exhaust the available resources in the container environment
|
||||
# leading to failed script loading.
|
||||
code --disable-dev-shm-usage "$@"
|
||||
else
|
||||
code "$@"
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue