Skip to content

Commit 1268afc

Browse files
kvdb-surfMark90kvdb
authored
Verify all ports are free (#983)
* Verify all ports are free Found out I had some in use ports, this might be helpful to others starting out as well. Extracted the needed ports from docker-compose.yml using: ``` yq -r '.services[]?.ports[]? // empty' docker-compose.yml | \ grep ':' | \ sed -E 's/^"?([0-9]+):[0-9]+.*"?$/\1/' | \ sort -n | uniq ``` * Apply suggestions from code review Co-authored-by: kvdb <[email protected]> --------- Co-authored-by: Mark Moes <[email protected]> Co-authored-by: kvdb <[email protected]>
1 parent 4fb585c commit 1268afc

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

docs/workshops/advanced/bootstrap.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,17 @@ COMPOSE_PROFILES=lso docker compose up
9090
This will also enable LSO, so network devices will be actually configured. If you don't want this, just use:
9191

9292
### Local environment
93+
94+
The environment requires several ports to be free.
95+
Use either command below to check if any are in use. No output means they're available:
96+
97+
```
98+
netstat -tulnp | grep -E ':80|:3000|:4000|:5432|:5678|:8000|:8001|:8080'
99+
ss -tulnp|grep -E ':80|:3000|:4000|:5432|:5678|:8000|:8001|:8080'
100+
```
101+
102+
Start the containers:
103+
93104
```
94105
docker compose up -d
95106
```

0 commit comments

Comments
 (0)