mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-08-29 15:06:26 +02:00
Solved bbb bugs
This commit is contained in:
@@ -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"
|
||||
```
|
14
roles/docker-compose/Debug.md
Normal file
14
roles/docker-compose/Debug.md
Normal 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.
|
||||
|
Reference in New Issue
Block a user