Skip to content

Instantly share code, notes, and snippets.

@alexolinux
Last active May 19, 2024 13:23
Show Gist options
  • Select an option

  • Save alexolinux/e602ce2608fe63c6dd5ab39f83e485cd to your computer and use it in GitHub Desktop.

Select an option

Save alexolinux/e602ce2608fe63c6dd5ab39f83e485cd to your computer and use it in GitHub Desktop.
code-server Docker container
#https://hub.docker.com/r/linuxserver/code-server
docker run -d \
--name=code-server \
-e PUID=1000 \
-e PGID=1000 \
-e TZ=Etc/UTC \
-e PASSWORD="${PASSWORD}" \
-e SUDO_PASSWORD="${SUDO_PASSWORD}" \
-e DEFAULT_WORKSPACE=/config/workspace \
-p 8443:8443 \
-v "${HOME}/.config:/config" \
--restart unless-stopped \
lscr.io/linuxserver/code-server:latest
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment