A ready-to-use developer container based on code-server
10K+
A developer container powered by code-server, with full Docker CLI support via Docker-in-Docker (DinD). Authentication and user setup is driven by environment variables via .env – ideal for ephemeral, configurable environments.
.envdocker build -t code-server-dind .
.env)Create a .env file to define user credentials and setup:
DOCKER_USER=coder
UID=1000
GID=1000
TZ=Asia/Taipei
PASSWORD=yourpassword
# Or alternatively:
# HASHED_PASSWORD=$argon2id$v=19$m=65536,t=3,p=4$...
Note: Set only one of
PASSWORDorHASHED_PASSWORD. UsePASSWORD=noneto disable authentication.
docker volume create code-server-home
docker run --rm -it \
--privileged \
-v code-server-home:/home/coder \
--env-file .env \
-p 8080:8080 \
code-server-dind
All work is persisted in /home/coder, mounted via Docker volume code-server-home.
PASSWORD=yourpass: sets a plain password.HASHED_PASSWORD=...: sets a secure pre-hashed password.PASSWORD=none: disables authentication (not recommended for public use).Once running, visit: http://localhost:8080
Login using the credentials defined in .env.
v1.33.0)docker volume rm code-server-home
This document is distributed under the terms of the GNU General Public License v3 or later. See the LICENSE file for more details.
Content type
Image
Digest
sha256:6adb1aeaf…
Size
1.2 GB
Last updated
about 10 hours ago
docker pull rusian/code-server-dind