mirror of
https://github.com/d0zingcat/deploy.git
synced 2026-05-14 07:26:43 +00:00
21 lines
546 B
Bash
Executable File
21 lines
546 B
Bash
Executable File
#!/bin/bash
|
|
# init
|
|
# =============================================
|
|
# SCRIPT COMMANDS
|
|
echo
|
|
echo "=============== START HUMMINGBOT INSTANCE ==============="
|
|
echo
|
|
echo "List of all docker instances:"
|
|
echo
|
|
docker ps -a
|
|
echo
|
|
echo
|
|
read -p " Enter the NAME of the Hummingbot instance to start or connect to (default = \"hummingbot\") >>> " INSTANCE_NAME
|
|
if [ "$INSTANCE_NAME" == "" ]
|
|
then
|
|
INSTANCE_NAME="hummingbot"
|
|
fi
|
|
echo
|
|
# =============================================
|
|
# EXECUTE SCRIPT
|
|
docker start $INSTANCE_NAME && docker attach $INSTANCE_NAME |