'Parse the ports and protocols (TCP/UDP) to expose in the docker-py `create_container` call from the docker CLI-style syntax.'

def get_exposed_ports(self, expose_list):

    if expose_list:
        exposed = []
        for port in expose_list:
            port = str(port).strip()
            if (port.endswith('/tcp') or port.endswith('/udp')):
                port_with_proto = tuple(port.split('/'))
            else:
                port_with_proto = (port, 'tcp')
            exposed.append(port_with_proto)
        return exposed
    else:
        return None
