fbdtemme / torrenttools

Commandline tool for inspecting, creating and editing BitTorrent metafiles.
MIT License
200 stars 16 forks source link

Docker always restarting #36

Open the-hotmann opened 2 years ago

the-hotmann commented 2 years ago

I set up a docker container with docker-compose but the docker shuts down immediately since he is not receiving a command. I would like him to idle.

when I solely run docker run -it --rm fbdtemme/torrenttools this appears and the container exits:

A subcommand is required
torrenttools v0.5.0
Tools for inspecting, creating and modifying bittorrent metafiles.

Usage: torrenttools [OPTIONS] SUBCOMMAND

Options:
  -h,--help                        Print this help message and exit
  --checksum-algorithms            List the supported hash functions for per file checksums.
  -V,--version                     Show program version and exit.
  --config <path>                  Path to custom location for the config.yml file.
  --trackers-config <path>         Path to custom location for the trackers.json file.

Subcommands:
  info                             General information about BitTorrent metafiles.
  create                           Create BitTorrent metafiles.
  verify                           Verify local data against BitTorrent metafiles.
  show                             Show specific fields of BitTorrent metafiles.
  edit                             Edit BitTorrent metafiles.
  magnet                           Generate a magnet URI for BitTorrent metafiles.
  pad                              Generate padding files for a BitTorrent metafile.

But I have not even entered the container.

Here my docker-compose.yml:

version: "3.8"
services:
  torrenttools:
    image: fbdtemme/torrenttools
    container_name: torrenttools
    stdin_open: true
    tty: true 
    volumes:
      - "REDACTED:REDACTED"
    restart: unless-stopped

Same if I want to start the container with docker-compose file.

Seesm to me like the container expects an immediate command, but nothing is written in the documentary. The docker setup is not even mentioned there, nor anything additional on DockerHub.

Please make the docker container persistent, to I can launch him. And then exec into him with:

docker exec -it torrenttools /bin/bash

Or something like that, and then I can do my thing there.

the-hotmann commented 2 years ago

Also the docker is on version v0.5.0.. somewhat old. Maybe someone can update the docker aswell, btw automate the this process and chain it to a GitHub Hook, so it is getting done automatically.