Skip to content

Commit

Permalink
Improved documentation (#3604)
Browse files Browse the repository at this point in the history
- Improved read flow
- Added volume sharing of cache folder
  • Loading branch information
pensiero authored and solderzzc committed Aug 11, 2016
1 parent 0292c2f commit 138b664
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions docs/docker.md
Original file line number Diff line number Diff line change
@@ -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.
Expand Down

0 comments on commit 138b664

Please sign in to comment.