Docker Community Forums

Share and learn in the Docker community.

How to run ubuntu container on docker startup


(Monterey) #1

I would like to run a specific application (Koken) in the Linux Containers context, automatically. It is not likely that this can be “automated” to behave like a Windows service, so I need something better than using “docker run …” each time my Windows 10 Workstation is rebooted,


(Gary Forghetti) #2

You can use a restart policy when you start the Docker container with the docker container run command by specify the option --restart always. This will make Docker restart the container when Docker itself restarts.


(Monterey) #3

Thank you @gforghetti - while I completely forgot about asking this question (my memory persistence is clearly shorter than 26 days), seeing your answer now tells me that that it is as welcome as ever :smile: