Skip to content

Commit 63e96d4

Browse files
committed
Add Docker troubleshooting section to README
1 parent 842ac42 commit 63e96d4

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

README.md

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,46 @@ This downloads and starts all required dependencies including Cadence server, da
3838
make
3939
```
4040

41+
### Docker Troubleshooting
42+
43+
The `docker-compose` command requires Docker daemon to be running. On macOS/Windows, open Docker Desktop. On Linux, run `sudo systemctl start docker`.
44+
45+
<details>
46+
<summary>Port conflicts</summary>
47+
48+
If you see `Bind for 0.0.0.0:<port> failed: port is already allocated`, find the process using that port:
49+
50+
```bash
51+
lsof -i tcp:<port>
52+
```
53+
54+
To find which container is using it:
55+
```bash
56+
docker ps --format '{{.ID}}\t{{.Ports}}\t{{.Names}}' | grep <port>
57+
```
58+
59+
Stop and remove the conflicting container:
60+
```bash
61+
docker stop <container_id> && docker rm <container_id>
62+
```
63+
64+
Cadence uses these ports: `7833`, `7933`, `7939`, `8000-8003`, `8088` (Web UI), `9042` (Cassandra), `9090` (Prometheus), `3000` (Grafana).
65+
66+
</details>
67+
68+
<details>
69+
<summary>Reset everything</summary>
70+
71+
```bash
72+
docker-compose down
73+
docker ps -a # check for leftover containers
74+
docker rm <container_id> # remove if needed
75+
```
76+
77+
Verify with `docker ps` and visit [http://localhost:8088](http://localhost:8088).
78+
79+
</details>
80+
4181
## 📚 Sample Categories
4282

4383
### Table of Contents

0 commit comments

Comments
 (0)