Run commands on restart

I want to run some commands on restart, that will not run on initial start but all the restarts after that, so how can I do such a thing? cause I dont wanna use Container Start Command, considering it will run initially as well and would require me reconfigure and start from scratch in my current running machines.
2 Replies
riverfog7
riverfog720h ago
make some file on start command and run different commands (the restart command) when the file exists?
John lanser
John lanserOP14h ago
tried so many different ways, was able to do that only when I connect with the machine after restart, can't find a way to run it on restart

Did you find this page helpful?