Coder Social home page Coder Social logo

Random docker issue about train-tesseract HOT 7 CLOSED

guiem avatar guiem commented on August 12, 2024
Random docker issue

from train-tesseract.

Comments (7)

guiem avatar guiem commented on August 12, 2024

Hi Iknoor,

In the docker.dev.yml file runs the start.sh script. This script executes a last command (tail -f /dev/null) that leaves the Docker instance "hanging" so you can connect to it.

Translation:

  1. Run docker-compose -f docker.dev.yml up in one tab of the terminal and leave it open.
  2. Run docker exec -ti train-ocr bash in another tab of the terminal (you'll enter the container) and that's where you can execute the following instructions.

Certainly, there could be cleaner ways to do this but it does the trick!

Please, let me know if you need more details!

from train-tesseract.

iknoorjobs avatar iknoorjobs commented on August 12, 2024

Hi @guiem

Thank you so much for your prompt response.

This is exactly what I am trying to do by running docker exec -ti train-ocr bash in another tab. But it keeps on showing this error even if I am running this command from the repo directory.
Error: Error response from daemon: No such container: train-ocr

Any idea what might be the possible reasons?

Thanks
Iknoor

from train-tesseract.

guiem avatar guiem commented on August 12, 2024

It is really hard to know without more specific information.

Did you make sure to observe that step 1 (docker-compose -f docker.dev.yml up) runs smoothly and you don't get any error messages? That's the first thing I would check.

I'll try to rebuild everything from scratch though, to verify that all works as expected.

from train-tesseract.

iknoorjobs avatar iknoorjobs commented on August 12, 2024

Yes it runs smoothly till the end when it says Running hooks in /etc/ca-certificates/update.d... done., except there is one message in red in the start that tells debconf: delaying package configuration, since apt-utils is not installed
It seems that it's not able to find the container name "train-ocr".

from train-tesseract.

iknoorjobs avatar iknoorjobs commented on August 12, 2024

Hi @guiem

Sorry, there was an issue with my server, the code is ok. Thanks for your time.

Iknoor

from train-tesseract.

guiem avatar guiem commented on August 12, 2024

I'm glad you could solve it, @iknoorjobs !!!

from train-tesseract.

iknoorjobs avatar iknoorjobs commented on August 12, 2024

Yes, and thanks for the awesome work. :)

from train-tesseract.

Related Issues (4)

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.