teledock

teledock

Docker app from onetx's Repository

Overview

Teledock: A simple telegram bot that allows a telegram's user to control a docker service.

Teledock

Golang Quality Gate Status GitHub go.mod Go version Go Report Card Docker Pulls

Teledock: A simple telegram bot that allows a telegram's user to control a docker service.

Features

  • List containers
  • Start / Stop containers
  • Inspect containers
  • List stacks
  • See logs
  • List images

Build

go build

Running it

Requirements

Configuration environment variables

  • TELEDOCK_TOKEN: Telegram token. See https://core.telegram.org/bots
  • TELEDOCK_SUPERADMINS: Comma separated list of Telegram user ids, only users listed here will have access to the bot.

Docker

To simplify the management of the bot there is a Docker image ready to use. You'll only need to mount the docker socket as a volume and set the environment variables (see how). Example:

docker pull mrmarble/teledock # Only needed the first time or to update
docker run -d -v /var/run/docker.sock:/var/run/docker.sock \
--name teledock \
--env TELEDOCK_TOKEN=bot_token \
--env TELEDOCK_SUPERADMINS=tg_userid  \
mrmarble/teledock

TODO

  • Create container
  • Run command inside container
  • Warn the user if tries to stop the bot

Suggestions / Contribution

I made teledock because I need it but if you want to use it and there's something missing or not quite right, feel free to create an issue or a pull request if you know how to fix it yourself

License

This project is licensed under the GPL 3.0 License. See the LICENSE file for details.

Install Teledock on Unraid in a few clicks.

Find Teledock in Community Apps on your Unraid server, review the template, and click Install. Unraid handles the Docker app or plugin setup from the published template.

Open the Apps tab on your Unraid server Search Community Apps for Teledock Review the template variables and paths Click Install

Download Statistics

9,767
Total Downloads

Related apps

Explore more like this

Explore all

Details

Repository
mrmarble/teledock
Last Updated2022-02-22
First Seen2022-09-05

Runtime arguments

Network
bridge
Shell
sh
Privileged
false

Template configuration

TELEDOCK_TOKENVariable

Telegram Bot Token

Default
123456:ABC-DEF1234ghIkl-zyx57W2v1u123ew11
Value
123456:ABC-DEF1234ghIkl-zyx57W2v1u123ew11
TELEDOCK_SUPERADMINSVariable

Comma separated list of Telegram user ids, only users listed here will have access to the bot.

Default
tg_userid
Value
tg_userid
Docker SocketPathrw

Docker Socket

Target
/var/run/docker.sock
Default
/var/run/docker.sock
Value
/var/run/docker.sock