added restarting mechanism for the docker system