Skip to content

Commit

Permalink
Set log level to error, add in error document to show resolution to n…
Browse files Browse the repository at this point in the history
…etwork found with incorrect label error
  • Loading branch information
pflooky committed Sep 13, 2024
1 parent 7c8623b commit 6a8bb11
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
1 change: 0 additions & 1 deletion docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1250,4 +1250,3 @@ services:
image: "zookeeper:${ZOOKEEPER_VERSION:-3.9.2}"
ports:
- "2181:2181"
version: "3.9"
10 changes: 10 additions & 0 deletions docs/errors.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Errors

## network insta-infra_default was found but has incorrect label com.docker.compose.network set to ""

This is due to insta-infra previously using `docker-compose` command which is part of V1 which is now deprecated and now
V2 uses `docker compose`. To resolve, run:
```shell
docker network rm insta-infra_default
```
Then try run insta-infra again.
2 changes: 1 addition & 1 deletion run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ check_persist_flag() {

startup_services() {
echo -e "${GREEN}Starting up services...${NC}"
docker compose $COMPOSE_FILES up -d --quiet-pull "$@"
docker --log-level error compose $COMPOSE_FILES up -d --quiet-pull "$@"
if [ $? != 0 ]; then
echo -e "${RED}Error: Failed to start up services${NC}"
exit 1
Expand Down

0 comments on commit 6a8bb11

Please sign in to comment.