From 2876d35e43e842bf1211e47a857a6cbb65db3841 Mon Sep 17 00:00:00 2001 From: David Pilato Date: Thu, 27 Jun 2024 21:29:19 +0200 Subject: [PATCH] Automatically stop the database When done with demo, we can stop it. --- mysql.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mysql.sh b/mysql.sh index b2d58b0..6dc7026 100755 --- a/mysql.sh +++ b/mysql.sh @@ -8,3 +8,6 @@ docker rm legacy-mysql docker run --name legacy-mysql -p 3306:3306 -e MYSQL_ROOT_PASSWORD=password -e MYSQL_DATABASE=person -d mysql:$MYSQL_VERSION --mysql-native-password=ON docker logs -f legacy-mysql +# Stop the database when done +docker stop legacy-mysql +docker rm legacy-mysql