Installing Tailscale via docker image

  • Hello all,

    For last few months I been using Tailscale as a docker image on my:

    Raspberry pi 4 - 2gig memory - LibreELEC (official): 12.0.1 (RPi4.aarch64)

    So I have written a bash script to install the Tailscale docker image and update the Tailscale image when needed with Watchtower.


    Regards: peter


    Remember to backup first before setting up Tailscale docker image !!


    Install LibreELEC Docker app before you run the tailscale.sh bash script to install Tailscale docker image.

    Add-ons / Install from repository / LibreELEC Add-ons / Services / Docker

    ## Below are the commands to set up the files that are needed.

    touch /storage/.config/tailscale.sh

    chmod +x /storage/.config/tailscale.sh

    ## Copy & Paste the lines below to: tailscale.sh

    To install the Tailscale docker image run the command shown below from the directory .config

    Code
    sh tailscale.sh

    When Tailscale image is installed. You can check to see if it is up and running with the command shown below:

    Code
    docker stats

    To setup Tailscale execute the command shown below to get the Tailscale login url

    Code
    docker exec docker-tailscaled tailscale up

    This will give you a url so you can log into your Tailscale account and connect your LibreELEC device to your tailnet.

    #

    Before you set a Tailscale exit node, use the command below:

    Code
    docker exec docker-tailscaled tailscale set --exit-node-allow-lan-access=true

    The command above will allow you to have ssh access to your LibreELEC from your local network.

    ## To auto update the Tailscale image I use autostart.sh script to run the tailscale.sh script which will check if the Tailscale image needs updating. If so Watchtower will update the Tailscale image.

    touch /storage/.config/autostart.sh

    chmod +x /storage/.config/autostart.sh

    ## Copy & Paste the lines below to: autostart.sh

    Bash
    #!/bin/sh
     (
     sleep 20
     /storage/.config/tailscale.sh
     )&


    The file below tailscale.commands is just handy notes to help setup Tailscale.

    touch /storage/.config/tailscale.commands

    ## Copy & Paste the lines below to: tailscale.commands