:py:mod:`dissect.target.loaders.containerimage` =============================================== .. py:module:: dissect.target.loaders.containerimage Module Contents --------------- Classes ~~~~~~~ .. autoapisummary:: dissect.target.loaders.containerimage.ContainerImageTarSubLoader Attributes ~~~~~~~~~~ .. autoapisummary:: dissect.target.loaders.containerimage.log dissect.target.loaders.containerimage.DOCKER_ARCHIVE_IMAGE dissect.target.loaders.containerimage.OCI_IMAGE .. py:data:: log .. py:data:: DOCKER_ARCHIVE_IMAGE .. py:data:: OCI_IMAGE .. py:class:: ContainerImageTarSubLoader(path: pathlib.Path, tar: tarfile.TarFile, **kwargs) Bases: :py:obj:`dissect.target.loaders.tar.TarSubLoader` Load saved container images. Supports both the Docker and OCI image specifications. Tested with output from ``docker image save`` and ``podman image save``. .. rubric:: References - https://snyk.io/blog/container-image-formats/ - https://github.com/moby/docker-image-spec/ - https://github.com/opencontainers/image-spec/ .. py:attribute:: tarfs :type: dissect.target.filesystems.tar.TarFilesystem :value: None .. py:attribute:: layers :type: list[pathlib.Path] :value: [] .. py:attribute:: manifest :value: None .. py:attribute:: name :value: None .. py:attribute:: config :value: None .. py:method:: detect(path: pathlib.Path, tar: tarfile.TarFile) -> bool :staticmethod: Only to be called internally by :class:`TarLoader`. .. py:method:: map(target: dissect.target.target.Target) -> None Only to be called internally by :class:`TarLoader`.