Docker Setup for Serena (Experimental)
Description
⚠️ **EXPERIMENTAL FEATURE**: The Docker setup for Serena is still experimental and has some limitations. Please read this entire document before using Docker with Serena.
Installation
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open the source below and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
Repository README
This is the README for oraios/serena, shared by 5 entries
in this directory. It describes the repository, not this entry specifically.
Docker Setup for Serena (Experimental)
⚠️ **EXPERIMENTAL FEATURE**: The Docker setup for Serena is still experimental and has some limitations. Please read this entire document before using Docker with Serena.
Overview
Docker support allows you to run Serena in an isolated container environment, which provides better security isolation for the shell tool and consistent dependencies across different systems.
Benefits
- Safer shell tool execution: Commands run in an isolated container environment
- Consistent dependencies: No need to manage language servers and dependencies on your host system
- Cross-platform support: Works consistently across Windows, macOS, and Linux
Important Usage Pointers
Configuration
Serena's configuration and log files are stored in the container in `/workspaces/serena/config/`. Any local configuration you may have for Serena will not apply; the container uses its own separate configuration.
You can mount a local configuration/data directory to persist settings across container restarts (which will also contain session log files). Simply mount your local directory to `/workspaces/serena/config` in the container. Initially, be sure to add a `serena_config.yml` file to the mounted directory which applies the following special settings for Docker usage:
# Disable the GUI log window since it's not supported in Docker
gui_log_window: False
# Listen on all interfaces for the web dashboard to be accessible from outside the container
web_dashboard_listen_address: 0.0.0.0
# Disable opening the web dashboard on launch (not possible within the container)
web_dashboard_open_on_launch: False
Set other configuration options as needed.
Project Activation Limitations
- Only mounted directories work: Projects must be mounted as volumes to be accessible
- Projects outside the mounted directories cannot be activated or accessed
- Since projects are not remembered across container restarts (unless you mount a local configuration as described above),
activate them using the full path (e.g.
/workspaces/projects/my-project) when using dynamic project activation
Language Support Limitations
The default Docker image does not include dependencies for languages that require explicit system-level installations. Only languages that install their requirements on the fly will work out of the box.
Dashboard Port Configuration
The web dashboard runs on port 24282 (0x5EDA) by default. You can configure this using environment variables:
# Use default ports
docker-compose up serena
# Use custom ports
SERENA_DASHBOARD_PORT=8080 docker-compose up serena
⚠️ **Note**: If the local port is occupied, you'll need to specify a different port using the environment variable.
Line Ending Issues on Windows
⚠️ **Windows Users**: Be aware of potential line ending inconsistencies:
- Files edited within the Docker container may use Unix line endings (LF)
- Your Windows system may exp
Related Agents
Deploy Agent
Handles deployment, distribution, and release management for all platforms
DevOps & Infrastructure Workflow Automate
| You are a workflow automation expert specializing in creating efficient CI/CD pipelines, GitHub Acti... | -
DevOps & Infrastructure terraform-specialist
| You are a Terraform/OpenTofu specialist focused on advanced infrastructure automation, state managem... | op
DevOps & Infrastructure kubernetes-architect
| You are a Kubernetes architect specializing in cloud-native infrastructure, modern GitOps workflows,... | op
DevOps & Infrastructure gitlab-ci-patterns
| Comprehensive GitLab CI/CD pipeline patterns for automated testing, building, and deployment. | - | [wshobso
DevOps & Infrastructure secrets-management
| Secure secrets management practices for CI/CD pipelines using Vault, AWS Secrets Manager, and other... | - |
DevOps & Infrastructure