Creating a Docker connection
Learn how to create a Docker connection for accessing Docker container logs.
Prerequisites
Section titled “Prerequisites”- Access to a Docker daemon (local or remote)
- Docker socket access or remote API endpoint
global_create_connectionpermission (Global Admin role)
Step 0: Open form
Section titled “Step 0: Open form”Navigate to Connections → New.
Step 1: Target
Section titled “Step 1: Target”Select Docker as the connection kind and fill in the connection parameters:
Address – Docker daemon socket URL
- Local:
unix:///var/run/docker.sock - Remote:
tcp://<host>:<port>(e.g.,tcp://docker-host:2375)
Step 2: Naming
Section titled “Step 2: Naming”- Name – Connection name (e.g., “Production Docker”, “Staging Docker”)
- Description – Optional description explaining which Docker host this connection accesses
Step 3: Review & Create
Section titled “Step 3: Review & Create”Review your configuration and click “Create” to save the connection.
Best practices
Section titled “Best practices”- Use local socket when Telescope runs on the same host as Docker
- Secure remote connections with TLS when connecting to remote Docker daemons
- Use descriptive names indicating which Docker host/environment
- Document purpose in description field
- Separate connections for different environments (prod/staging/dev)
Security recommendations
Section titled “Security recommendations”- For remote connections, use TLS and client certificates
- Use separate connections for different environments
Troubleshooting
Section titled “Troubleshooting”Connection test fails:
- Verify Docker daemon is running
- Check socket path is correct for local connections
- For remote connections, verify host and port are accessible
- Ensure Telescope has permission to access Docker socket
- Check firewall rules for remote connections
Permission denied:
- Add Telescope user to
dockergroup for local socket access - Verify socket permissions (
/var/run/docker.sock)
Related documentation
Section titled “Related documentation”- Docker connection concept – Technical details
- Creating a Docker source – Next step after connection
- Connection permissions – Managing access