added support for docker flags