Fix docker validation and only run docker tests on linux