we use (docker) container to do local builds of changes in our puppet code but it is not really nice. you will need some special cases. Also if you use systemd for timers etc. that is kind of an issue.
It at least get's nasty if your container do not only contain a single service/application but multiple once because in a proper container environment these would be different container.