Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to execute udocker detached? #283

Open
sonuyos opened this issue Oct 17, 2020 · 3 comments
Open

How to execute udocker detached? #283

sonuyos opened this issue Oct 17, 2020 · 3 comments

Comments

@sonuyos
Copy link

sonuyos commented Oct 17, 2020

I am able to use this but unable to execute it in detached mode, any way to do it?

So that i can setup automation scripts.

@zoobab
Copy link

zoobab commented Mar 22, 2023

I did it via screen hack:

$ screen -d -m udocker run --nobanner zoobab/country:latest

You can log the output in a log file via .screenrc:

http://www.zoobab.com/screenrc

cat ~/.screenrc

logfile screenlog-%Y%m%d-%c:%s

I will try to modify udocker to redirect the logs to a file...

@zoobab
Copy link

zoobab commented Mar 23, 2023

I did it via screen hack, with a log file:

$ NAME="country" screen -dmS $NAME -h 0 -L -Logfile $NAME.log udocker run --nobanner zoobab/country:latest

See also:

https://stackoverflow.com/questions/14208001/save-screen-program-output-to-a-file

@mathias-heilmann
Copy link

You could also use nohup udocker run zoobab/country:latest &. So you can easily logout from a shell and the process is still running. This will also create a nohup.out file. Maybe that helps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants