attempting fix by waiting!
This commit is contained in:
parent
7a491eec05
commit
77a76c6d95
7
run
7
run
@ -4,9 +4,12 @@ docker rm passwd0
|
|||||||
docker stop passwd-db
|
docker stop passwd-db
|
||||||
docker rm passwd-db
|
docker rm passwd-db
|
||||||
docker build -t passwd0 .
|
docker build -t passwd0 .
|
||||||
|
docker network create web
|
||||||
docker network create passwd-db
|
docker network create passwd-db
|
||||||
docker run -d --restart always --name passwd-db --network passwd-db \
|
docker run -d --restart always --name passwd-db --network passwd-db \
|
||||||
-v "$PWD/db":/var/lib/postgresql/data postgres:10.5-alpine
|
-v "$PWD/db":/var/lib/postgresql/data postgres:10.5-alpine
|
||||||
docker run -d --restart always --name passwd0 --network web \
|
sleep 5
|
||||||
|
docker run -d --restart always --name passwd0 --network passwd-db \
|
||||||
passwd0:latest
|
passwd0:latest
|
||||||
docker network connect passwd-db passwd0
|
sleep 5
|
||||||
|
docker network connect web passwd0
|
||||||
|
Loading…
Reference in New Issue
Block a user