Scripting and containers

Hello,
I know this is a loooooong shot, but is it possible to use a command from a container in a script or run a script in a container and use the output to update the router configuration

I was thinking about using curl/Japan to connect to ZeroTier api and generate/execute the commands to update the static dns entries for all my ZeroTier members. Now I have to run this on a raspberry and execute the commands through ssh. It is not a big deal because I will add or remove members rarely, but it might be useful for more complex scripts.

I would imagine something like:

  • define an alias for the container template (name, envs, type of output (commands, src file,..),…)
  • use the alias in scripts