{"id":20496634,"url":"https://github.com/sydneyowl/docker-code-server","last_synced_at":"2026-04-21T19:32:20.587Z","repository":{"id":160743069,"uuid":"626734715","full_name":"SydneyOwl/docker-code-server","owner":"SydneyOwl","description":"A modified version of linux-server. Designed to be upgradeable without losing the original environment. With go and its vscode plugin integrated.","archived":false,"fork":false,"pushed_at":"2023-05-31T08:18:53.000Z","size":43,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-05T18:49:42.046Z","etag":null,"topics":["code-server","docker","golang"],"latest_commit_sha":null,"homepage":"","language":"Dockerfile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SydneyOwl.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-04-12T03:57:20.000Z","updated_at":"2024-04-05T04:22:31.000Z","dependencies_parsed_at":null,"dependency_job_id":"8914c2aa-e72d-45f3-8216-ef596f0c6f74","html_url":"https://github.com/SydneyOwl/docker-code-server","commit_stats":null,"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"purl":"pkg:github/SydneyOwl/docker-code-server","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SydneyOwl%2Fdocker-code-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SydneyOwl%2Fdocker-code-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SydneyOwl%2Fdocker-code-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SydneyOwl%2Fdocker-code-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SydneyOwl","download_url":"https://codeload.github.com/SydneyOwl/docker-code-server/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SydneyOwl%2Fdocker-code-server/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32106633,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-21T11:25:29.218Z","status":"ssl_error","status_checked_at":"2026-04-21T11:25:28.499Z","response_time":128,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["code-server","docker","golang"],"created_at":"2024-11-15T18:08:10.683Z","updated_at":"2026-04-21T19:32:20.558Z","avatar_url":"https://github.com/SydneyOwl.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# README\n\n![GitHub Workflow Status (with branch)](https://img.shields.io/github/actions/workflow/status/SydneyOwl/docker-code-server/ci.yml?style=for-the-badge) ![Docker Pulls](https://img.shields.io/docker/pulls/sydneymrcat/code-server?style=for-the-badge) ![GitHub](https://img.shields.io/github/license/sydneyowl/docker-code-server?style=for-the-badge)\n\n[中文文档](./README_CN.md)\n\n\nThis is a modified version of [linux-server](https://github.com/linuxserver/docker-code-server) which removed support of s6-overlay and use debian as base image. \n\nOnly amd64/arm64/armv7 are supported; And arm64/armv7 images are not being tested.\n\nThis image is designed to be upgradeable (upgrading will not lose the environment already installed in the container). The upgrade tool is experimental. See [code-server-updater](https://github.com/sydneyowl/code-server-updater) for more\n\nImage has two types.Full image embeds Golang and go vscode plugins. The Go version is the version at the time of the push. Pure image integrate code-server only. For details, please refer to the [version log](#VersionLog).\n\n**warning:golang in armhf is compiled through `GOROOT_FINAL=/usr/local GOOS=linux GOARCH=arm GOARM=7 GOBIN=\"/home/abc/go/bin\" ./make.bash` from source and may not be compatible. See .github/scripts/compile_go.sh for more!!**\n\n**THIS IS STILL A DRAFT AND IS NOT RECOMMANDED TO USE.**\n\n## Build\nIf you want to directly pull the built image, you can skip this section.\n\nIf you need to build an armv7l image, you need to download the compiled golang dist from release and replace the go.tar.gz in the repository\n\nTo build the image：\n\nbuild vscode-only image：\n```\ndocker build --pull --no-cache \\\n--build-arg CODE_RELEASE=`#optional;version of code_server` \n-t sydneymrcat/code-server -f pure.Dockerfile .\n```\n\nBuild go-embeded image via:\n```\ndocker build --pull --no-cache \\\n--build-arg CODE_RELEASE=`#optional;version of code_server` \\\n--build-arg GO_RELEASE=`#optional;version of golang` \\\n-t sydneymrcat/code-server .\n```\n\n## Pull and run code-server\n\nPull the full (with programming environment embedded) image:\n```\ndocker pull sydneymrcat/code-server:latest\n```\n\nPull lightweight (contains only code-server) image：\n```\ndocker pull sydneymrcat/code-server:pure\n```\n\nPull the specified version, see version log for details:\n```\ndocker pull sydneymrcat/code-server:VERSION\nOR\ndocker pull sydneymrcat/code-server:pure-VERSION\n\ne.g. docker pull sydneymrcat/code-server:v0.2.1\n```\n\n\n\nFirst, please create a volume using `docker create volume code_app` to store the code-server application files. During the upgrade, this volume will be mounted into another container.\n\nYou can use either docker-cli or docker-compose to run the container.\n\ndocker-compose\n```docker\n---\nversion: \"2.1\"\nservices:\n  code-server:\n    image: sydneymrcat/code-server:latest\n    container_name: code-server\n    environment:\n      - PUID=1000\n      - PGID=1000\n      - TZ=Etc/UTC\n      - PASSWORD=password #optional\n      - HASHED_PASSWORD= #optional\n      - SUDO_PASSWORD=password #optional\n      - SUDO_PASSWORD_HASH= #optional\n      - PROXY_DOMAIN=code-server.my.domain #optional\n      - DEFAULT_WORKSPACE=/config/workspace #optional\n      - SKIP_INIT= # Debug only.\n    volumes:\n      - /path/to/appdata/config:/config\n      - code_app:/app\n    ports:\n      - 8443:8443\n    restart: unless-stopped\n```\n\ndocker cli\n```docker\ndocker run -d \\\n  --name=code-server \\\n  -e PUID=1000 \\\n  -e PGID=1000 \\\n  -e TZ=Etc/UTC \\\n  -e PASSWORD=password `#optional` \\\n  -e HASHED_PASSWORD= `#optional` \\\n  -e SUDO_PASSWORD=password `#optional` \\\n  -e SUDO_PASSWORD_HASH= `#optional` \\\n  -e PROXY_DOMAIN=code-server.my.domain `#optional` \\\n  -e DEFAULT_WORKSPACE=/config/workspace `#optional` \\\n  -e SKIP_INIT= `# Debug only.` \\\n  -p 8443:8443 \\\n  -v /path/to/appdata/config:/config \\\n  -v code_app:/app \\\n  --restart unless-stopped \\\n  sydneymrcat/code-server:latest\n```\nHere are the parameter descriptions:\n\n| Parameter | Function |\n| :----: | --- |\n| `-p 8443` | web gui |\n| `-e PUID=1000` | for UserID |\n| `-e PGID=1000` | for GroupID |\n| `-e TZ=Etc/UTC` | specify a timezone to use, see this [list](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List). |\n| `-e SKIP_INIT=` | Set to 1 to Skip initializing the container. This is for debug usage only! |\n| `-e PASSWORD=password` | Optional web gui password, if `PASSWORD` or `HASHED_PASSWORD` is not provided, there will be no auth. |\n| `-e HASHED_PASSWORD=` | Optional web gui password, overrides `PASSWORD`. |\n| `-e SUDO_PASSWORD=password` | If this optional variable is set, user will have sudo access in the code-server terminal with the specified password. |\n| `-e SUDO_PASSWORD_HASH=` | Optionally set sudo password via hash (takes priority over `SUDO_PASSWORD` var). Format is `$type$salt$hashed`. |\n| `-e PROXY_DOMAIN=code-server.my.domain` | If this optional variable is set, this domain will be proxied for subdomain proxying. See [Documentation](https://github.com/cdr/code-server/blob/master/docs/FAQ.md#sub-domains) |\n| `-e DEFAULT_WORKSPACE=/config/workspace` | If this optional variable is set, code-server will open this directory by default |\n| `-v /config` | Contains all relevant configuration files. |\n## Default installed environment\n### Go and vscode plugin\n location:`/usr/local/go`\n\nGOBIN: `/home/abc/go/bin`\n\n## VersionLog\n\n### Full environment\n\nv0.2.3: Integrated go1.20.4 and Code-Server4.12.0\n\nv0.2.2: Integrated go1.20.3 and Code-Server4.12.0\n\nv0.2.1: Integrated go1.20.3 and Code-Server4.11. Passed Test of updater(https://github.com/SydneyOwl/code-server-updater).\n\nv0.2.0: Integrated go1.20.3 and Code-Server4.11.\n\nv0.2.0-beta: Bug fix: Cannot create necessary directories. Integrated go1.20.3 and Code-Server4.11.\n\nv0.2.0-alpha: Bug fix: Cannot chown. Integrated go1.20.3 and Code-Server4.11. **Not Rcommanded to use.**\n\nv0.1.x: Not Rcommanded to use.\n\n### Pure\n\nv0.2.3: Code-Server4.12.0\n\nv0.2.2: Code-Server4.12.0\n\nv0.2.1: Code-Server4.11. Passed Test of updater(https://github.com/SydneyOwl/code-server-updater).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsydneyowl%2Fdocker-code-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsydneyowl%2Fdocker-code-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsydneyowl%2Fdocker-code-server/lists"}