On 8/19/2014 8:53 AM, Sascha Hüdepohl wrote: > Hello! > > * Noel Jones (njo...@megan.vbhcs.org) schrieb: > > >> It sounds as if you're trying to monitor postfix health. > > No, actually i wanted to check the installation. I'm learning docker and > am trying to create an image from a Dockerfile.
Thanks. It helps to describe the actual problem rather than the non-working solution. > > Unfortunately Docker doens't allow set-gid files unless startet with > --privileged. So i wanted to check if the file-permissions are ok, if > not set them (thank you for the hint on "postfix set-permissions") and > then check again. > > somethink like: > > if not postfix check > postfix set-permissions > if not postfix check > ERROR "please run docker with --privileged" > fi > fi > > > But its not that easy. > > > Regards > Sascha > Probably easiest to just always run postfix set-permissions on a new installation. Running set-permissions repeatedly won't break anything. And a new installation will always need some files set-gid, so you'll always need your --privileged flag. -- Noel Jones