I have a EC2 instance at AWS. I have installed docker in it.

Sometimes I have to reboot my instance but I need each time to restart my container with my ./up script.

How can I make a script witch will be executed at each reboot of my instance so I won't need to execute my script manually ?

  • 1
    Other than a reboot entry in crontab? Nov 10, 2017 at 17:45
  • You can add your script to rc.local.. that should run your script on startup..
    – ryekayo
    Nov 10, 2017 at 18:42
  • I don't have a rc.local in my instance @ryekayo what should I do?
    – Kevin
    Nov 14, 2017 at 17:28


You must log in to answer this question.

Browse other questions tagged .