From 138b66413e45efcef1ae015388b80a2725e7a7d8 Mon Sep 17 00:00:00 2001 From: Oscar Fanelli Date: Thu, 11 Aug 2016 14:38:46 +0200 Subject: [PATCH] Improved documentation (#3604) - Improved read flow - Added volume sharing of cache folder --- docs/docker.md | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/docs/docker.md b/docs/docker.md index 735cdd99ec..2b2181bb56 100644 --- a/docs/docker.md +++ b/docs/docker.md @@ -1,25 +1,34 @@ Start by downloading for your platform: [Mac](https://www.docker.com/products/docker#/mac), [Windows](https://www.docker.com/products/docker#/windows), or [Linux](https://www.docker.com/products/docker#/linux). Once you have Docker installed, simply create the various config.json files for your different accounts (e.g. `configs/config-account1.json`) and then create a Docker image for PokemonGo-Bot using the Dockerfile in this [repo](https://hub.docker.com/r/svlentink/pokemongo-bot/). -#Automatic setup +#Setup +##Automatic setup Use this docker hub url: https://hub.docker.com/r/svlentink/pokemongo-bot/ ``` docker pull svlentink/pokemongo-bot ``` -#Manual setup +##Manual setup ``` cd PokemonGo-Bot docker build -t pokemongo-bot . ``` + +#Run + You can verify that the image was created with: ``` docker images ``` +- In case of automatic setup, you'll see an image called: `svlentink/pokemongo-bot` +- In case of manual setup, you'll see an image called: `pokemongo-bot` To run PokemonGo-Bot Docker image you've created, simple run: ``` -docker run --name=pokego-bot1 --rm -it -v $(pwd)/configs/config-account1.json:/usr/src/app/configs/config.json pokemongo-bot +docker run --name=pokego-bot1 --rm -it -v $(pwd)/configs/config-account1.json:/usr/src/app/configs/config.json -v $(pwd)/data:/usr/src/app/data pokemongo-bot ``` + +Replace `pokemongo-bot` with `svlentink/pokemongo-bot` in case you followed automatic setup. + _Check the logs in real-time `docker logs -f pgobot`_ If you want to run multiple accounts with the same Docker image, simply specify different config.json and names in the Docker run command.