elafargue / rpi-tig

Dockerized Telegraf/InfluxDB/Grafana for Rpi

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Docker install

creinemann opened this issue · comments

commented

Not sure why, but I could not get
apt-get install docker.io docker-compose
to run, I tried it on and extra PI with a fresh install of raspberian as well, ended up using this route and it all worked.

  1. Install Docker
    curl -sSL https://get.docker.com | sh

  2. Add permission to Pi User to run Docker Commands
    sudo usermod -aG docker pi

Reboot here or run the next commands with a sudo

  1. Test Docker installation
    docker run hello-world

  2. IMPORTANT! Install proper dependencies
    sudo apt-get install -y libffi-dev libssl-dev
    sudo apt-get install -y python3 python3-pip
    sudo apt-get remove python-configparser

  3. Install Docker Compose
    sudo pip3 install docker-compose

Thanks! Will improve the README

I tried all this and couldn't get it to work. Tried multiple times. I was either getting errors in the test docker step or during the docker-compose (errors in the crypto wheel part). Assuming I probably need to start from a fresh install.

I tried all this and couldn't get it to work. Tried multiple times. I was either getting errors in the test docker step or during the docker-compose (errors in the crypto wheel part). Assuming I probably need to start from a fresh install.

Im not sure I was getting same error, anyway Ive solved installing manually rust compiler as following:

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
source $HOME/.cargo/env

pip3 install docker-compose