With Docker
For unix distribution only

Installing docker

Please follow the instructions here for a debian computer.
For a raspberry installation please follow this guide.
Don't forget to run the following command at the end of the installation (and logout)
1
sudo usermod -aG docker $USER
Copied!
so you don't have this permission denied error each time you use a docker command : permission denied while trying to connect to daemon socket.

Running OctoBot

stable
latest (may be unstable)
    1.
    Download OctoBot
    1
    docker pull drakkarsoftware/octobot:stable
    Copied!
    2.
    Start OctoBot (for linux x64/x86 and raspberry linux arm64/arm32)
    1
    docker run -itd --name OctoBot -p 80:5001 -v $(pwd)/user:/octobot/user -v $(pwd)/tentacles:/octobot/tentacles -v $(pwd)/logs:/octobot/logs drakkarsoftware/octobot:stable
    Copied!
    1.
    Download OctoBot latest
    1
    docker pull drakkarsoftware/octobot:latest
    Copied!
    2.
    Start OctoBot (for linux x64/x86 and raspberry linux arm64/arm32)
    1
    docker run -itd --name OctoBot -p 80:5001 -v $(pwd)/user:/octobot/user -v $(pwd)/tentacles:/octobot/tentacles -v $(pwd)/logs:/octobot/logs drakkarsoftware/octobot:latest
    Copied!

How to look at OctoBot logs ?

1
docker logs OctoBot -f
Copied!

How to stop OctoBot ?

1
docker stop OctoBot
Copied!

How to restart OctoBot ?

1
docker restart OctoBot
Copied!

How to update OctoBot ?

1
docker pull drakkarsoftware/octobot:stable
2
docker stop OctoBot
3
docker rm OctoBot
4
docker run -itd --name OctoBot -p 80:5001 -v $(pwd)/user:/octobot/user -v $(pwd)/tentacles:/octobot/tentacles -v $(pwd)/logs:/octobot/logs drakkarsoftware/octobot:stable
Copied!

Running with docker-compose

A simple way to run a docker image is to use docker-compose :
    Install docker-compose
    Download the docker-compose.yml file
    Create a .env file in the current folder
    Add HOST=YOUR_IP_ADDRESS in the newly created .env file. (where YOUR_IP_ADDRESS is the ip address of the computer, can be replaced by localhost if it's a local computer)
    Start OctoBot with docker-compose (with the previous file docker-compose.yml in the current folder):
    1
    docker-compose up -d
    Copied!
You can now open the OctoBot web interface at https://YOUR_IP_ADDRESS.

Start multiple OctoBots with docker

To run a second OctoBot on the same computer :
    1.
    Create a new directory and enter it
    2.
    Start OctoBot's web interface on a new port by changing "-p" option
1
docker run -itd --name OctoBot -p 8000:5001 -v $(pwd)/user:/octobot/user -v $(pwd)/tentacles:/octobot/tentacles -v $(pwd)/logs:/octobot/logs drakkarsoftware/octobot:stable
Copied!
In this example, the second OctoBot's web interface is accessible at http://127.0.0.1:8000.
Any port can be used except those already used by another OctoBot or any software on your system.

Start OctoBot with docker managed files

It's easier to use but it will not be possible to update it without deleting its files.
-v arguments can be removed from previous start commands but OctoBot's local files will then be managed by docker (and not directly visible).
1
docker run -itd --name OctoBot -p 80:5001 drakkarsoftware/octobot:stable
Copied!
Local OctoBot files path are located in /var/lib/docker and can be listed with the following command
1
docker inspect -f '{{ .Mounts }}' OctoBot
Copied!
To copy files of a directory outside the OctoBot container, for example for logs files :
1
docker cp OctoBot:/octobot/logs/. .
Copied!
Wherer "OctoBot" is your container name
Last modified 2mo ago