'Legacy launch method for use when the container interface is not enabled'

def _launch_legacy(self, image, env_override, volumes):

    raw_cmd = self.docker_cmd(image, env_override=env_override, volumes=volumes)
    log.info('Starting    docker    container    for    IE    {0}    with    command    [{1}]'.format(self.attr.viz_id, raw_cmd))
    p = Popen(raw_cmd, stdout=PIPE, stderr=PIPE, close_fds=True, shell=True)
    (stdout, stderr) = p.communicate()
    if (p.returncode != 0):
        log.error(('%s\n%s' % (stdout, stderr)))
        return None
    else:
        container_id = stdout.strip()
        log.debug(('Container    id:    %s' % container_id))
        inspect_data = self.inspect_container(container_id)
        port_mappings = self.get_container_port_mapping(inspect_data)
        self.attr.docker_hostname = self.get_container_host(inspect_data)
        host_port = self._find_port_mapping(port_mappings)[(-1)]
        log.debug('Container    host/port:    %s:%s', self.attr.docker_hostname, host_port)
        self.attr.proxy_request = self.trans.app.proxy_manager.setup_proxy(self.trans, host=self.attr.docker_hostname, port=host_port, proxy_prefix=self.attr.proxy_prefix, route_name=self.attr.viz_id, container_ids=[container_id])
        self.attr.proxy_url = self.attr.proxy_request['proxy_url']
