Quantcast
Channel: MikroTik
Viewing all articles
Browse latest Browse all 15394

Scripting • Re: Easy container update script

$
0
0
There is a mistake on this row:
Thanks for catching my typo there! Appreciated.
Some can have other config properties set to container like CMD, host, DNS, etc... Why just not find current container by comment variable, read all its config properties and set it for new container?
This is a neat idea. I patterned my script from my experience with Docker Compose, where it's expected that you declaratively define the settings for a container service. Following that model, extending this script to match your container's needs would be my recommended path instead. By doing that, you can also use the script to redefine the configuration of the container on update instead of changing settings via the CLI.

Statistics: Posted by belthesar — Sat Feb 03, 2024 6:43 pm



Viewing all articles
Browse latest Browse all 15394

Trending Articles