Solved bbb bugs

This commit is contained in:
2025-04-06 09:09:41 +02:00
parent 949feb912a
commit 4461f73c86
5 changed files with 32 additions and 14 deletions

View File

@@ -1,11 +1,13 @@
# Docker Compose
## Delete all containers, networks and volumes
```bash
docker compose down -v
docker compose down -v
```
## Show the state of all containers
```bash
watch -n 2 "docker compose ps -a"
```

View File

@@ -0,0 +1,14 @@
# Debug
## Bind for 127.0.0.1:XXXX failed: port is already allocated
If their are port allocated messages ``Bind for 127.0.0.1:XXXX failed: port is already allocated"`` execute the following command:
```bash
find /opt/docker -maxdepth 1 -type d -exec bash -c '[ -f "{}/docker-compose.yml" ] && echo "Stopping: {}" && docker compose -f "{}/docker-compose.yml" down' \; &
systemctl restart docker
find /opt/docker -maxdepth 1 -type d -exec bash -c '[ -f "{}/docker-compose.yml" ] && echo "Starting: {}" && docker compose -f "{}/docker-compose.yml" up -d' \; &
```
Then try to run the ansible script again.