Hostname param given to the module is splitted in hostname and domain if it appends a domain and its passed splitted to the docker python client. This is what the Docker CLI does when given a hostname param.