I'm trying to slowly build up a docker image for our needs. What I want to do, is run my base image that has mono, and then have mono run an executable in the background. From the normal command line, without trying to run it in a container, it would look like:
/usr/local/bin/mono /home/crystal/Downloads/BackgroundProcesser.exe &
That works fine. But if I try to do it when I run the container like so:
sudo docker run -i -t crystal/mono-base /usr/local/bin/mono /home/crystal/Downloads/BackgroundProcesser.exe &
I get No such file or directory
. Is there a way I can pass the &
in? Eventually, I'd like to pass the & in to run this BackgroundProcessor in the background, and then run another app in the foreground. I saw this post for a different solution, http://blog.trifork.com/2014/03/11/using-supervisor-with-docker-to-manage-processes-supporting-image-inheritance/, but I thought I could run some stuff from the command line for proof of concept stuff for our app.