From 7b2ac134172f138314ba9bfb50e23277ca534c04 Mon Sep 17 00:00:00 2001 From: Arnie Date: Fri, 23 Mar 2018 12:00:03 +0100 Subject: [PATCH] Update the run script for mariadb --- maria-db/run.sh | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/maria-db/run.sh b/maria-db/run.sh index e877d98..0a303d9 100755 --- a/maria-db/run.sh +++ b/maria-db/run.sh @@ -41,16 +41,14 @@ init() { __ask_to_start } -# Creates and enters a new container, mounting the current context to /current inside -bash() { - docker run --rm -it -v ${PWD}:/current --net ${DB_NETWORK} ${IMAGE_NAME}:${IMAGE_VERSION} bash -} - # Runs a command inside the container, mounting the current context to /current inside cmd() { - docker run --rm -v $PWD:/current --net ${DB_NETWORK} ${IMAGE_NAME}:${IMAGE_VERSION} $@ + docker run --rm -it -v $PWD:/current --net ${DB_NETWORK} ${IMAGE_NAME}:${IMAGE_VERSION} $@ } +bash() { + cmd bash +} # Used for exporting the whole database filesystem backup() {