Process management with CFEngine
Process management with CFEngine
Create Docker containers with managed processes.
Docker monitors one process in each running container and the container lives or dies with that process. By introducing CFEngine inside Docker containers, we can alleviate a few of the issues that may arise:
- It is possible to easily start multiple processes within a container, all of which will be managed automatically, with the normal
docker run
command. - If a managed process dies or crashes, CFEngine will start it again within 1 minute.
- The container itself will live as long as the CFEngine scheduling daemon (cf-execd) lives. With CFEngine, we are able to decouple the life of the container from the uptime of the service it provides.
How it works
CFEngine, together with the cfe-docker integration policies, are installed as part of the Dockerfile. This builds CFEngin