Script after Docker Container Update


Recommended Posts

I hace two container that need to be in two ir more docker networks.

After been updated or re-built, each time, they lost the "extra" networks and I need to execute the following command:

 

"docker network connect --ip 172.x.x.x network docker"

 

Is there a script that do the work for me after an update or re-built?

Thank you

Edited by dellorianes
Link to comment
  • dellorianes changed the title to Script after Docker Container Update

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.