(self, container_id, name)
return False
Associates a name to a container id The container can
        then be referenced either by its id or by its name.
Associates a name to a container id The container can
        then be referenced either by its id or by its name.
Associates a name to a container id The container can then be referenced either by its id or by its name .
def set_container_name(self, container_id, name):
        """Associates a name to a container id The container can
        then be referenced either by its id or by its name.
        """
        if self._name_is_valid(name):
            container_dir = self.cd_container(container_id)
            if container_dir:
                linkname = os.path.realpath(self.containersdir + '/' + name)
                if os.path.exists(linkname):
                    return False
                real_container_dir = os.path.realpath(container_dir)
                return self._symlink(real_container_dir, linkname)
        return False
def set_container_name ( self , container_id , name ) : if self . _name_is_valid ( name ) : container_dir = self . cd_container ( container_id ) if container_dir : linkname = os . path . realpath ( self . containersdir + '/' + name ) if os . path . exists ( linkname ) : return False real_container_dir = os . path . realpath ( container_dir ) return self . _symlink ( real_container_dir , linkname ) return False