Title logo
linuxserver/code-server.

64,731,694 676 amd64 arm64

Build Information

General build information for this image

Docker Hub linuxserver/code-server
Build Time 18 Nov 2024 17:04:18
Category Development
Synchronised Yes
Stable Yes
Deprecated No

Tracked Tags

Known tags which link to a specific branched app version.

Branch Version Built
development version-3.0.1 02 Nov 2020 at 21:16:14
latest 4.95.3 18 Nov 2024 at 17:04:17

Daily Pull Statistics

Running this as a container

Basic examples for getting this image running as a container

Docker Compose

---
version: "2"
services:
  code-server:
    image: linuxserver/code-server:4.95.3
    container_name: code-server
    restart: unless-stopped
    environment:
      - TZ=Europe/London # Specify a timezone to use EG Europe/London
      - SUDO_PASSWORD=password # If this optional variable is set, user will have sudo access in the code-server terminal with the specified password.
      - PUID=1000 # for UserID
      - PROXY_DOMAIN=code-server.my.domain # If this optional variable is set, this domain will be proxied for subdomain proxying.
      - PGID=1000 # for GroupID
      - PASSWORD=password # Optional web gui password, if not provided, there will be no auth.
    volumes:
      - /host/path/to/config:/config # Contains all relevant configuration files.
    ports:
      - 8443:8443/tcp # Web UI

CLI

docker create \
  --name=code-server \
  -e TZ=Europe/London `# Specify a timezone to use EG Europe/London` \
  -e SUDO_PASSWORD=password `# If this optional variable is set, user will have sudo access in the code-server terminal with the specified password.` \
  -e PUID=1000 `# for UserID` \
  -e PROXY_DOMAIN=code-server.my.domain `# If this optional variable is set, this domain will be proxied for subdomain proxying.` \
  -e PGID=1000 `# for GroupID` \
  -e PASSWORD=password `# Optional web gui password, if not provided, there will be no auth.` \
  -v /host/path/to/config:/config `# Contains all relevant configuration files.` \
  -p 8443:8443/tcp `# Web UI` \
  --restart unless-stopped \
  linuxserver/code-server:4.95.3