Quantcast
Channel: Active questions tagged dockerfile - DevOps Stack Exchange
Viewing all articles
Browse latest Browse all 136

Running Two infinite commands on single pod/image

$
0
0

I have a Dockerfile with a CMD, it calls a .sh file that runs a Django app( makemigrations, migrate and uwsgi )And that runs fine in a pod.

There's a django admin script that runs infinitely that I'd like to run in the same pod.

  • Per the docker docs I can't have a second command in the Dockerfile
  • Adding the script on the sh file wouldn't work because the both processes ( the app or command script ) are running and don't end so the second one never runs.
    • If I go in the pod and run exec -it bash to manually run the script i can't leave the pod without killing the process (Ctrl-C) or can I?

Any suggestions?


Viewing all articles
Browse latest Browse all 136

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>