Sometimes containers are dependent on other containers. Since VyOS uses systemd to run the containers, this can be accomplished with adding Requires and After as options in the container config.
- Requires means that a container is tied to another container. So if you reboot the parent container, then it’ll reboot any container that says it requires that parent.
- After will only start the child if the parent is “up” first. This may or may not help, because it’s not checking if whatever the parent is doing is present, just that the service is healthy.
Syntax could be something like (note multi should be used):
set container name alpine dependency requires <container-a> set container name alpine dependency requires <container-b> set container name alpine dependency after <container-a> set container name alpine dependency after <container-b>