A custom container based on LinuxServer.io featuring code-server with integrated Docker CLI and Node.js development environments. For more information, please refer to the official linuxserver/code-server repository.
This build incorporates the following modifications to the standard environment:
npm@latest.abc user is granted NOPASSWD rights for development flexibility.| Architecture | Available | Tag |
|---|---|---|
| x86-64 | ✅ | amd64 |
| arm64 | ✅ | arm64 |
Access the webui at http://<your-ip>:8443.
To use Docker commands within the code-server terminal, you must mount the host Docker socket:
-v /var/run/docker.sock:/var/run/docker.sock
Note: The container currently requires sudo to run Docker commands on the host.
For github integration, drop your ssh key in to /config/.ssh. Set your git identity:
git config --global user.name "username"
git config --global user.email "email address"
---
services:
code-server:
image: solodolobolo/code-server:latest
container_name: code-server
environment:
- PUID=${PUID:-1000}
- PGID=${PGID:-1000}
- TZ=Etc/UTC
- PASSWORD=${PASSWORD:-webui_password}
- SUDO_PASSWORD=${SUDO_PASSWORD}
- DEFAULT_WORKSPACE=/config/workspace
volumes:
- /path/to/config:/config
- /var/run/docker.sock:/var/run/docker.sock #optional
ports:
- 8443:8443
restart: unless-stopped
docker run -d \
--name=code-server \
-e PUID=1000 \
-e PGID=1000 \
-e TZ=Etc/UTC \
-e PASSWORD=password \
-p 8443:8443 \
-v /path/to/config:/config \
-v /var/run/docker.sock:/var/run/docker.sock \
--restart unless-stopped \
custom-code-server:latest
| Parameter | Function |
|---|---|
-p 8443:8443 | Web GUI port |
-v /config | Persistent configuration |
-v /var/run/docker.sock:/var/run/docker.sock | Host Docker socket for CLI access |
-e PUID=1000 | UserID for file permissions |
-e PGID=1000 | GroupID for file permissions |
-e TZ=Etc/UTC | Container timezone |
-e PASSWORD= | Web GUI access password |
Content type
Image
Digest
sha256:3c2870693…
Size
551 MB
Last updated
5 days ago
docker pull solodolobolo/code-server