• Home
  • Raw
  • Download

Lines Matching full:container

19 from autotest_lib.site_utils.lxc.container import Container
25 """A class that manages a base container.
27 Instantiating this class will cause it to search for a base container under
30 container.
32 The actual base container can be obtained by calling the get() method.
34 Calling cleanup() will delete the base container along with all of its
41 If a valid base container already exists on this machine, the BaseImage
43 install a base container.
45 @param container_path: The LXC path for the base container.
46 @param base_name: The base container name.
51 base_container = Container.create_from_existing_dir(
60 """Download and setup the base container.
62 @param name: Name of the base container, defaults to the name passed to
66 @param force_delete: True to force to delete existing base container.
83 'Base container already exists. Set force_delete to True '
84 'to force to re-stage base container. Note that this '
86 # Set proper file permission. base container in moblab may have
91 # Destroy existing base container if exists.
103 container = Container.create_from_existing_dir(
107 container.destroy()
115 self.base_container = Container.create_from_existing_dir(
119 """Destroys the base container.
122 container.
127 base = Container.create_from_existing_dir(self.container_path,
132 """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.
182 """Finds snapshot clones of the current base container."""
195 yield Container.create_from_existing_dir(lxc_path, name)