# US 10,768,919 B2 · Package installation on a host file system using a container

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 10,768,919 B2
- Document ID: US10768919B2
- Status: Granted
- Kind: B2
- Application number: 16/572,472
- Filed: 2019-09-16
- Published: 2020-01-09
- Granted: 2020-09-08
- Earliest claimed: 2017-05-16
- Assignees: Red Hat, Inc.
- Applicants: Red Hat, Inc.
- Inventors: Giuseppe Scrivano; Colin Walters; Daniel Walsh
- Web page: https://patentgrep.com/patent/US10768919B2

## CPC

- G06F 8/63: {Image based installation; Cloning; Build to order}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

An example method of installing one or more files on a host file system includes extracting, by an operating system, a container image from a container. The container image stores a set of files and provides an indication of a hierarchical structure for the set of files. The method also includes obtaining, by the operating system, a package in accordance with the container image. The package includes the set of files. The method further includes installing the package on the host file system in accordance with the hierarchical structure for the set of files.

## Claims

### Claim 1

A method of installing one or more files on a host file system, comprising:
extracting, by an operating system, a container image from a container, the container image storing a set of files;
searching the set of files for an export directory, the export directory being a directory structure within the container and indicating a subset of the set of files for exporting to the operating system, and the subset of files being in accordance with a hierarchical structure;
obtaining, by the operating system, a package including the subset of files in accordance with the export directory and the hierarchical structure; and
installing the package on the host file system in accordance with the hierarchical structure of the export directory.

### Claim 2 (depends on 1)

The method of claim 1, wherein the container defines a root file system.

### Claim 3 (depends on 1)

The method of claim 1, comprising:
exporting the subset of files to the operating system.

### Claim 4 (depends on 3)

The method of claim 3, wherein exporting a first file of the subset of files includes copying the first file and storing the copy of the first file in the package.

### Claim 5 (depends on 3)

The method of claim 3, wherein exporting the subset of files includes exporting a structure of the export directory to the package.

### Claim 6 (depends on 1)

The method of claim 1, comprising:
loading the container including the container image, wherein obtaining the package includes creating the package on-the-fly after loading the container.

### Claim 7 (depends on 1)

The method of claim 1, wherein the package includes the container.

### Claim 8 (depends on 1)

The method of claim 1, comprising:
mapping the subset of files included in the export directory to a root of the host file system; and
mounting the subset of files on the host file system in accordance with the root of the host file system and the hierarchical structure.

### Claim 9 (depends on 8)

The method of claim 8, wherein mapping the subset of files to the root includes identifying a relative pathname and mapping the subset of files under the relative pathname to the root of the host file system.

### Claim 10 (depends on 9)

The method of claim 9, comprising:
traversing a directory tree including the relative pathname, wherein identifying the relative pathname includes dropping a first part of an absolute file path included in the directory tree.

### Claim 11

A system for installing one or more files on a host file system, comprising:
an extraction module that extracts a container image from a container and searches the container image storing a set of files for an export directory, wherein the export directory is a directory structure within the container and indicates a subset of the set of files for exporting to an operating system, and the subset of files is in accordance with a hierarchical structure; and
a package manager that creates a package including the subset of files in accordance with the export directory and the hierarchical structure and that installs the package on the host file system in accordance with the hierarchical structure for the set of files, wherein the operating system includes the extraction module and the package manager.

### Claim 12 (depends on 11)

The system of claim 11, wherein the package is pre-installed with the operating system.

### Claim 13 (depends on 11)

The system of claim 11, wherein the package is bound to a version of the operating system.

### Claim 14 (depends on 13)

The system of claim 13, wherein the package manager creates the package on-the-fly.

### Claim 15 (depends on 11)

The system of claim 11, wherein after the package is installed on the host file system, the container and the host file system have a common directory tree.

### Claim 16 (depends on 11)

The system of claim 11, wherein the set of files installed on the host file system is visible from the container.

### Claim 17 (depends on 11)

The system of claim 11, wherein the package manager tracks one or more packages installed on the host file system and links an owner of a given package to the given package.

### Claim 18

A non-transitory machine-readable medium comprising a plurality of machine-readable instructions that when executed by one or more processors is adapted to cause the one or more processors to perform a method comprising:
extracting, by an operating system, a container image from a container, the container image storing a set of files;
searching the set of files for an export directory, the export directory being a directory structure within the container and indicating a subset of the set of files for exporting to the operating system, and the subset of files being in accordance with a hierarchical structure;
obtaining, by the operating system, a package including the subset of files in accordance with the export directory and the hierarchical structure; and
installing the package on a host file system in accordance with the hierarchical structure of the export directory.

### Claim 19 (depends on 18)

The non-transitory machine-readable medium of claim 18, wherein the set of files installed on the host file system is visible from the container.

### Claim 20 (depends on 18)

The non-transitory machine-readable medium of claim 18, wherein the package includes the container.
