modelfoxdotdev / modelfox

ModelFox makes it easy to train, deploy, and monitor machine learning models.
Other
1.46k stars 63 forks source link

Issue running cli from Docker #88

Closed joelchen closed 2 years ago

joelchen commented 2 years ago

When I tried to run tangram cli through Rust's Command from Docker container, there will be the following error:

error: No such device or address (os error 6)

Sample project: https://github.com/joelchen/train

joelchen commented 2 years ago

This works: docker run -it train This does not work: docker run train How do I make TTY not necessary for it to work?

nitsky commented 2 years ago

You can use the --no-progress flag.

joelchen commented 2 years ago

@nitsky Used --no-progress on the server and got the following:

errorerror: No such device or address (os error 6)
: No such device or address (os error 6)
error: Broken pipe (os error 32)

That is why I am trying to reproduce on local and fix it.

joelchen commented 2 years ago

Resorted to not using Command by copying chunks of tangram-cli into application, and set progress: false in TrainArgs to prevent tortoise::terminal::Terminal from running.

nitsky commented 2 years ago

Thanks for finding this issue, I am reopening to track a proper fix.

nitsky commented 2 years ago

@joelchen thanks again for spotting this issue, I just committed 818b3c9 to no longer propagate errors if a tty is not found.