Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

Update build_docker.sh run command

天舟f8e4e1338e94
diff --git a/build_docker.sh b/build_docker.sh
index cb0f407f88..dcf0a4f121 100755
--- a/build_docker.sh
+++ b/build_docker.sh
@@ -29,9 +29,13 @@ echo "$ docker tag bytebase/bytebase bytebase/bytebase:${VERSION}; docker push b
echo ""
echo "Command to start Bytebase on http://localhost:8080"
echo ""
-echo "$ docker run --init --name bytebase --restart always --publish 8080:80 --volume ~/.bytebase/data:/var/opt/bytebase bytebase/bytebase"
+echo "$ docker run -d --init --name bytebase --restart always --publish 8080:80 --volume ~/.bytebase/data:/var/opt/bytebase bytebase/bytebase --data /var/opt/bytebase --host http://localhost --port 8080"
echo ""
-echo "Command to start Bytebase in demo and readonly mode on http://example.com"
+echo "Command to start Bytebase in demo mode on http://example.com"
echo ""
-echo "$ docker run --init --name bytebase --restart always --publish 80:80 --volume ~/.bytebase/data:/var/opt/bytebase bytebase/bytebase --demo --readonly --host http://example.com"
+echo "$ docker run -d --init --name bytebase --restart always --publish 80:80 --volume ~/.bytebase/data:/var/opt/bytebase bytebase/bytebase --data /var/opt/bytebase --host http://example.com --port 80 --demo"
+echo ""
+echo "Command to start Bytebase in readonly mode on http://example.com"
+echo ""
+echo "$ docker run -d --init --name bytebase --restart always --publish 80:80 --volume ~/.bytebase/data:/var/opt/bytebase bytebase/bytebase --data /var/opt/bytebase --host http://example.com --port 80 --readonly"
echo ""
\ No newline at end of file