Code Monkey home page Code Monkey logo

Comments (5)

PHLAK avatar PHLAK commented on July 25, 2024

I've definitely run into this issue before myself, however, I'm not sure how to fix this. As far as I know Docker doesn't have a way to run a command before (or after) starting/restarting a container.

The only way I can think of to do this would be to change the CMD line in the Dockerfile to something like:

CMD ["rm", "-f", "/etc/flexget/.config-lock && flexget", "&&", "flexget", "-c", "/etc/flexget/config.yml", "--loglevel", "verbose", "daemon", "start"]

However, this would totally break the single process nature of Docker and I'm not even sure that would work. If you have any other ideas please share.

In the event this does happen to you though you can solve it like so (assuming you followed the README and named your containers/volumes the same):

  1. Stop the container
docker stop flexget-client
  1. Remove the .config-lock file from the volume
docker run -it --rm -v flexget-data:/etc/flexget phlak/flexget phlak/flexget rm /etc/flexget/.config-lock
  1. Start the container.
docker start flexget-client

from docker-flexget.

oscar-b avatar oscar-b commented on July 25, 2024

Using a bash script which deletes the file before launching Flexget doesn’t break single process of Docker since it won’t run simultaneously, and I think this is a totally fine way of solving it. Would be better with an option in Flexget itself though, but that might be more of a hassle to implement.

from docker-flexget.

oscar-b avatar oscar-b commented on July 25, 2024

@PHLAK Seen that Flexget themselves recommend removing the lock file on start? https://flexget.com/InstallWizard/SynologyNAS/Docker

from docker-flexget.

PHLAK avatar PHLAK commented on July 25, 2024

Good to know @oscar-b, also leaving this here as a note for myself: https://stackoverflow.com/a/41518225

from docker-flexget.

PHLAK avatar PHLAK commented on July 25, 2024

Resolved with 84449dc

from docker-flexget.

Related Issues (1)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.