forked from fabriziosalmi/certmate
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdebug-docker.sh
More file actions
executable file
·33 lines (28 loc) · 1.2 KB
/
Copy pathdebug-docker.sh
File metadata and controls
executable file
·33 lines (28 loc) · 1.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/bin/bash
# Debug script to check certificate visibility in Docker container
echo "=== Local Certificate Check ==="
echo "Certificates in local folder:"
ls -la certificates/ 2>/dev/null || echo "No certificates folder found locally"
echo ""
echo "=== Docker Container Check ==="
if docker ps | grep -q certmate; then
echo "CertMate container is running. Checking certificates inside container:"
docker exec certmate ls -la /app/certificates 2>/dev/null || echo "Cannot access container certificates"
echo ""
echo "Checking container data directory:"
docker exec certmate ls -la /app/data 2>/dev/null || echo "Cannot access container data"
echo ""
echo "Checking if container can read settings:"
docker exec certmate cat /app/data/settings.json 2>/dev/null || echo "Cannot read settings from container"
else
echo "CertMate container is not running"
echo "Available containers:"
docker ps --format "table {{.Names}}\t{{.Image}}\t{{.Status}}"
fi
echo ""
echo "=== Docker Compose Service Check ==="
if command -v docker-compose >/dev/null 2>&1; then
docker-compose ps 2>/dev/null || echo "No docker-compose services running"
else
echo "docker-compose not available"
fi