attempting fix by waiting!

This commit is contained in:
Paul Liverman III 2018-09-09 20:32:15 -07:00
parent 7a491eec05
commit 77a76c6d95

7
run
View File

@ -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