Docker Usage¶
Run redisctl without installing anything.
Quick Start¶
Explicit prefixes in Docker
The examples on this page use explicit cloud/enterprise prefixes because Docker containers typically don't have a persistent config file. If you mount a config directory (see Mount Config File below), prefix inference works the same as a native install. See Platform Inference for details.
Passing Credentials¶
Environment Variables¶
docker run --rm \
-e REDIS_CLOUD_API_KEY \
-e REDIS_CLOUD_SECRET_KEY \
ghcr.io/redis-developer/redisctl cloud subscription list
Mount Config File¶
If you have a local configuration:
docker run --rm \
-v ~/.config/redisctl:/root/.config/redisctl:ro \
ghcr.io/redis-developer/redisctl --profile prod cloud subscription list
Convenient Aliases¶
Add to your shell profile (~/.bashrc, ~/.zshrc, etc.):
Saving Output to Files¶
Mount a volume to save command output:
docker run --rm \
-e REDIS_ENTERPRISE_URL \
-e REDIS_ENTERPRISE_USER \
-e REDIS_ENTERPRISE_PASSWORD \
-v $(pwd)/output:/output \
ghcr.io/redis-developer/redisctl \
enterprise support-package cluster --output-dir /output
MCP Server (Zero-Install)¶
The Docker image includes redisctl-mcp, so you can use the MCP server with your AI assistant without installing anything. Copy one of the .mcp.json snippets below and start chatting.
Option 1: Environment Variables (Simplest)¶
Pass credentials as environment variables. The password is pulled from your host environment rather than hardcoded:
{
"mcpServers": {
"redisctl": {
"command": "docker",
"args": [
"run", "-i", "--rm",
"-e", "REDIS_ENTERPRISE_URL=https://cluster:9443",
"-e", "REDIS_ENTERPRISE_USER=admin@redis.local",
"-e", "REDIS_ENTERPRISE_PASSWORD",
"ghcr.io/redis-developer/redisctl",
"redisctl-mcp"
]
}
}
}
Option 2: Mounted Config¶
Mount your existing redisctl config directory for profile-based auth:
{
"mcpServers": {
"redisctl": {
"command": "docker",
"args": [
"run", "-i", "--rm",
"-v", "~/.config/redisctl:/root/.config/redisctl:ro",
"ghcr.io/redis-developer/redisctl",
"redisctl-mcp", "--profile", "my-profile"
]
}
}
}
Option 3: Local Clusters (Host Networking)¶
For clusters running on localhost (e.g. Docker Compose demos), use --network host so the container can reach host ports:
{
"mcpServers": {
"redisctl": {
"command": "docker",
"args": [
"run", "-i", "--rm",
"--network", "host",
"-e", "REDIS_ENTERPRISE_URL=https://localhost:9443",
"-e", "REDIS_ENTERPRISE_USER=admin@redis.local",
"-e", "REDIS_ENTERPRISE_PASSWORD",
"-e", "REDIS_ENTERPRISE_INSECURE=true",
"ghcr.io/redis-developer/redisctl",
"redisctl-mcp"
]
}
}
}
Note
--network host is required on Linux. On macOS, Docker Desktop routes host.docker.internal to the host automatically, but --network host is the simplest cross-platform approach.
Running from the CLI¶
You can also run the MCP server directly:
# With environment credentials
docker run -i --rm \
-e REDIS_ENTERPRISE_URL \
-e REDIS_ENTERPRISE_USER \
-e REDIS_ENTERPRISE_PASSWORD \
ghcr.io/redis-developer/redisctl \
redisctl-mcp
# With mounted config
docker run -i --rm \
-v ~/.config/redisctl:/root/.config/redisctl:ro \
ghcr.io/redis-developer/redisctl \
redisctl-mcp --profile my-profile
Tip
Native installation is recommended for regular MCP usage since Docker adds latency to each tool call. Docker is best for quick trials and CI environments.
Image Tags¶
| Tag | Description |
|---|---|
latest |
Most recent release |
0.7.3 |
Specific version |
0.7 |
Latest patch in minor version |