try CMD ["/bin/bash" , "/etc/init.d/postgresql" , "restart"]