Docker VS Code Server DotNet Core Update

Docker Image

docker run -d \
  --name=code-server \
  -e PUID=1000 \
  -e PGID=1000 \
  -e TZ=Etc/UTC \
  -e PASSWORD=password `#optional` \
  -e HASHED_PASSWORD= `#optional` \
  -e SUDO_PASSWORD=password `#optional` \
  -e SUDO_PASSWORD_HASH= `#optional` \
  -e PROXY_DOMAIN=code-server.my.domain `#optional` \
  -e DEFAULT_WORKSPACE=/config/workspace `#optional` \
  -p 8443:8443 \
  -v /path/to/appdata/config:/config \
  --restart unless-stopped \
  lscr.io/linuxserver/code-server:latest

Docker image update

Open a Terminal window in the container then : Install .Net 8.0 SDK

sudo apt-get update && sudo apt-get install -y dotnet-sdk-8.0

Install .Net 8.0 runtime

sudo apt-get update && sudo apt-get install -y aspnetcore-runtime-8.0

or

sudo apt-get install -y dotnet-runtime-8.0

check :

dotnet --version

References

Microsoft .Net & Ubuntu Docker VS Code server image