sudo docker run --restart always -itd

I need to make a docker container start timeout after rebooting the machine. About 10 seconds. the container starts after rebooting itself --restart always, but I need a little delay so that the container starts later than other services, how to do it?

  • I don’t understand what you’re asking.  Can you explain in more detail what you want to do?  Please do not respond in comments; edit your question to make it clearer and more complete. – G-Man Says 'Reinstate Monica' Dec 8 '19 at 6:34
  • okay. im edit comment – Дмитрий Вербовой Dec 8 '19 at 11:11
  • Add a sleep command to your container's startup script(s)? – larsks Dec 8 '19 at 15:44
  • how? sudo docker run --restart always -itd – Дмитрий Вербовой Dec 8 '19 at 17:29

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.