From eaec54a1d1c25214dc6b06cce7aa8567fdbf713c Mon Sep 17 00:00:00 2001 From: Michael Feng Date: Wed, 5 Apr 2023 07:57:43 -0700 Subject: [PATCH] readme fixes --- hummingbot_gateway_compose/README.md | 67 ++++++++++++++++++++++++++-- 1 file changed, 63 insertions(+), 4 deletions(-) diff --git a/hummingbot_gateway_compose/README.md b/hummingbot_gateway_compose/README.md index 5c8fe19..18bd4f3 100644 --- a/hummingbot_gateway_compose/README.md +++ b/hummingbot_gateway_compose/README.md @@ -118,14 +118,73 @@ Remove the '#' to uncomment out: Afterwards, save the file. -## Recreate container +### Recreate container -Now, restart the container and attach to it. +Now, restart the container ``` docker-compose up -d +``` + +Attach to the Hummingbot instance: +``` +docker attach hummingbot_gateway_compose-bot-1 +``` +After you enter your password, you should now see `GATEWAY:ONLINE` in the upper-right hand corner. + +Open a new Terminal/Bash window. In it, attach to the Gateway instance to see its logs: +``` +docker attach hummingbot_gateway_compose-gateway-1 +``` +See [Gateway](https://docs.hummingbot.org/gateway/) for more details on how to configure it for use with Hummingbot. + + +## Useful Docker Commands + +Use the commands below or use the Docker Desktop application to manage your Hummingbot and Gateway container: + +### Create the Compose network +``` +docker-compose up -d +``` + +### Attach to the Hummingbot container +``` +docker attach hummingbot_gateway_compose-bot-1 +``` + +### Attach to the Gateway container +``` docker attach hummingbot_gateway_compose-gateway-1 ``` -You should see `GATEWAY:ONLINE` in the upper-right hand corner of the Hummingbot client. +### Detach from the container and return to command line -See [Gateway](https://docs.hummingbot.org/gateway/) for more details on how to configure it for use with Hummingbot. +Press keys Ctrl + P then Ctrl + Q + + +### Update the container to the latest image +``` +docker-compose up --force-recreate --build -d +``` + +### List all containers +``` +docker ps -a +``` + +### Stop the Compose network + +``` +docker-compose down +``` + +### Stop a container + +``` +docker stop +``` + +### Remove a container +``` +docker rm +```