A complete development environment based on Ubuntu 22.04 featuring code-server (VS Code in the browser) with essential DevOps and security scanning tools pre-installed.
# Pull and run the container
docker run -d -p 8087:8087 --name my-devenv navdeepkhaira/code-server:tagname
# Access code-server in your browser
# Navigate to: http://localhost:8087
docker run -d -p 8087:8087 --restart unless-stopped --name devenv navdeepkhaira/code-server:tagname
docker run -d \
-p 8087:8087 \
-v /path/to/your/workspace:/root/workspace \
--restart unless-stopped \
--name devenv \
navdeepkhaira/code-server:tagname
docker run -d \
-p 8087:8087 \
-v /path/to/config:/root/.config/code-server \
-v /path/to/workspace:/root/workspace \
--restart unless-stopped \
--name devenv \
navdeepkhaira/code-server:tagname
Once your container is running and you access code-server:
pwsh to start PowerShellvim filename or vi filenamecheckov --help for infrastructure security scanning/root/root/.config/code-server/config.yamlChange password for authentication by modifying the config:
bind-addr: 0.0.0.0:8087
auth: password
password: your-secure-password
cert: false
# Build from source
git clone <your-repo>
cd <your-repo>
docker build -t ubuntu-codeserver .
# Run with custom settings
docker run -d \
--name mydev \
-p 8087:8087 \
-e PASSWORD=mysecretpassword \
ubuntu-codeserver
# View logs
docker logs mydev
# Access container shell
docker exec -it mydev bash
The container automatically starts code-server on boot. Code-server will be available immediately after container creation at http://localhost:8087.
| Variable | Description | Default |
|---|---|---|
PASSWORD | Code-server password | myc0d353rv3r |
PORT | Code-server port | 8087 |
This image is designed for development and DevOps workflows. Feel free to extend it with additional tools as needed for your specific use case.
This project is open source. Please check individual tool licenses for their respective terms.
Tags: ubuntu, code-server, vscode, devops, checkov, powershell, vim, python, development, infrastructure-as-code
Content type
Image
Digest
sha256:adc85fd66…
Size
512.5 MB
Last updated
about 1 year ago
docker pull navdeepkhaira/code-server