I am new to docker and I created a docker image which runs a rails app. Now I want to run the app in background as a deamon, but it keeps on bailing out on me:
docker run -d -p 2000:2000 image_name "source ~/.bash_profile; cd src; rails s"
As you can see, my rails app is in the src directory.
I have also tried adding the rails path in the bashrc for the docker image, still it errors out as below:
Can somebody please correct me.