From 4d0f3a0fb203e915f87ba93576b88003e6f28952 Mon Sep 17 00:00:00 2001 From: Olivier DOSSMANN Date: Wed, 11 May 2016 18:21:57 +0200 Subject: [PATCH] [FIX] Missing postgreSQL version for container creation --- launch.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/launch.sh b/launch.sh index 8b9c575..5af7f93 100755 --- a/launch.sh +++ b/launch.sh @@ -268,7 +268,7 @@ psql() { $docker_cmd start ${POSTGRES_DOCKER_NAME} sleep 4 # wait postgreSQL database to be fully launched fi - $docker_cmd run -it --link ${POSTGRES_DOCKER_NAME}:db --rm postgres sh -c 'exec psql -h "$DB_PORT_5432_TCP_ADDR" -p "$DB_PORT_5432_TCP_PORT" -U postgres' || error_and_quit "Failed to connect to postgreSQL Docker container." + $docker_cmd run -it --link ${POSTGRES_DOCKER_NAME}:db --rm "postgres:${POSTGRES_VERSION}" sh -c 'exec psql -h "$DB_PORT_5432_TCP_ADDR" -p "$DB_PORT_5432_TCP_PORT" -U postgres' || error_and_quit "Failed to connect to postgreSQL Docker container." } restore() {