fix CNAME detection to be non interactive and to remove container when done