Lines Matching full:container
15 from autotest_lib.site_utils.lxc.container import Container
19 """A class that manages a base container.
21 Instantiating this class will cause it to search for a base container under
24 container.
26 The actual base container can be obtained by calling the get() method.
28 Calling cleanup() will delete the base container along with all of its
37 If a valid base container already exists on this machine, the BaseImage
39 install a base container.
41 @param container_path: The LXC path for the base container.
42 @param base_name: The base container name.
47 base_container = Container.create_from_existing_dir(
57 """Download and setup the base container.
59 @param name: Name of the base container, defaults to the name passed to
63 @param force_delete: True to force to delete existing base container.
80 'Base container already exists. Set force_delete to True '
81 'to force to re-stage base container. Note that this '
83 # Set proper file permission. base container in moblab may have
88 # Destroy existing base container if exists.
100 container = Container.create_from_existing_dir(
104 container.destroy()
112 self.base_container = Container.create_from_existing_dir(
117 """Destroys the base container.
120 container.
125 base = Container.create_from_existing_dir(self.container_path,
131 """Returns the base container.
148 # This ensures a clean setup of the new base container.
150 # TODO(kenobi): Add a check to ensure that the base container doesn't
159 # Remove the downloaded container tar file.
162 # Update container config with container_path from global config.
171 """Changes the container group and owner to root.
175 # TODO(dshi): Change root to current user when test container can be
176 # unprivileged container.
183 """Finds snapshot clones of the current base container."""
196 yield Container.create_from_existing_dir(lxc_path, name)