Jump to content

Running script after a docker container starts


sse450

Recommended Posts

I have a user script. I would like to run it after a docker container starts. It doesn't work if I schedule it "At startup of array", as the script tries to run before the container starts.

 

What is the best way to run a script after a specific docker container starts?

 

Thanks.

Edited by sse450
Link to comment
  • 2 weeks later...

How often are you restarting the docker that you need this? Also what is the actual thing you are trying to do?

 

I would created a bash file in the app data stored folder so it survives re-installs.

 

I then created a file like attached with a variety of command that I want to execute on some of my containers. You would still need to use the command line to execute the menu script.

 

im sure there are other ways to do what you want as well.

 

 

menu

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...