Lines Matching full:container
11 from autotest_lib.site_utils.lxc import container
20 """A factory class for creating LXC container objects."""
22 def __init__(self, base_container, container_class=container.Container,
27 @param base_container: The base container from which other containers
29 @param container_class: (optional) The Container class to instantiate.
30 By default, lxc.Container is instantiated.
33 @param force_cleanup: (optional) If True, if a container is created with
35 container, the existing container is destroyed,
36 and the new container created in its place. By
53 """Creates a new container.
55 @param cid: (optional) A ContainerId for the new container. If an ID is
57 container. If no ID is provided, a random name is generated
58 for the container, and it is not assigned an ID.
59 @param lxc_path: (optional) The LXC path for the new container. If one
67 logging.debug('Creating new container (name: %s, lxc_path: %s)',
70 # If an ID is provided, use it as the container name.
72 # If an ID is provided, assign it to the container. When the container
73 # is created just-in-time by the container bucket, this ensures that the
74 # resulting container is correctly registered with the autoserv system.
75 # If the container is being created by a container pool, the ID will be
87 """Creates a container from the base container.
89 @param name: Name of the container.
90 @param lxc_path: The LXC path of the new container.
92 @return: A Container object for the created container.
94 @raise ContainerError: If the container already exist.
111 ' This forces cleanup of old cloned container.')