// RemoveContainer removes a hyper container
RemoveContainer removes a hyper container
// RemoveContainer removes a hyper container
func (c *Client) RemoveContainer(containerID string) error {
	ctx, cancel := getContextWithTimeout(hyperContextTimeout)
	defer cancel()
	_, err := c.client.ContainerRemove(ctx, &types.ContainerRemoveRequest{ContainerId: containerID})
	if err != nil {
		if strings.Contains(err.Error(), "cannot find container") {
			return nil
		}
		return err
	}
	return nil
}
func ( c * Client ) RemoveContainer ( containerID string ) error { ctx , cancel := getContextWithTimeout ( hyperContextTimeout ) defer cancel ( ) _ , err := c . client . ContainerRemove ( ctx , & types . ContainerRemoveRequest { ContainerId : containerID } ) if err != nil { if strings . Contains ( err . Error ( ) , " " ) { return nil } return err } return nil }
RemoveContainer removes a hyper container
RemoveContainer removes a hyper container