# US 2022/0291946 A1 · Software container configuration

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

- Number: US 2022/0291946 A1
- Document ID: US20220291946A1
- Status: Published application
- Kind: A1
- Application number: 17/201,050
- Filed: 2021-03-15
- Published: 2022-09-15
- Earliest claimed: 2021-03-15
- Assignees: International Business Machines Corporation
- Applicants: International Business Machines Corporation
- Inventors: Zach Taylor; Randy A. Rendahl; Stephen Paul Ridgill, II; Aditya Mandhare
- Web page: https://patentgrep.com/patent/US20220291946A1

## CPC

- G06F 9/48: Program initiating; Program switching, e.g. by interrupt
- G06F 21/51: at application loading time, e.g. accepting, rejecting, starting or inhibiting executable software based on integrity or source reliability
- G06F 21/53: by executing in a restricted environment, e.g. sandbox or secure virtual machine
- G06F 2212/152: Virtualized environment, e.g. logically partitioned system
- G06F 2221/033: Test or assess software
- G06F 2221/2149: Restricted operating environment
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A container specification is received. The container specification includes a definition of an image. The image definition specifies the running of one or more prestart runtime commands. The image definition is inspected to identify whether the image definition includes specifying the running of one or more prestart runtime commands. The image is started on a host system, wherein in response to identifying that the image definition includes running one or more prestart runtime commands, the starting of the image includes running the one or more prestart runtime commands prior to the container entering a running state.

## Claims

### Claim 1

A computer-implemented method, comprising:
receiving a container specification, the container specification including a definition of an image, the image definition specifying the running of one or more prestart runtime commands;
inspecting the image definition to identify whether the image definition includes specifying the running of one or more prestart runtime commands; and
starting the image on a host system, wherein in response to identifying that the image definition includes running one or more prestart runtime commands, the starting of the image includes running the one or more prestart runtime commands prior to the container entering a running state.

### Claim 2 (depends on 1)

The computer-implemented method of claim 1, further comprising running the container.

### Claim 3 (depends on 1)

The computer-implemented method of claim 1, wherein the one or more prestart runtime commands includes two or more commands and the image definition specifies an order for running the two or more prestart runtime commands, further comprising:
running the two or more prestart runtime commands in the specified order.

### Claim 4 (depends on 1)

The computer-implemented method of claim 1,
wherein the image is associated with a first permission level;
wherein the running of the at least one prestart runtime command requires a particular level of permission, the method further comprising:
preventing the running of the at least one prestart runtime command if the first permission level does not satisfy the particular level of permission required to run the at least one prestart runtime command.

### Claim 5 (depends on 1)

The computer-implemented method of claim 1, wherein at least one prestart runtime command is a command to call an application program interface (API) or a command to a host operating system.

### Claim 6 (depends on 1)

The computer-implemented method of claim 1, wherein at least one prestart runtime command is a command to obtain a secret provided by a secret file or a command to identify a type of environment in which a container will be built.

### Claim 7 (depends on 1)

The computer-implemented method of claim 1, wherein the running the one or more prestart runtime commands prior to starting the container further comprises:
determining that a particular prestart runtime command is a required configuration command;
determining that the particular prestart runtime command failed; and
responsive to determining that the particular prestart runtime command failed, terminating the starting of the image and generating an error message.

### Claim 8 (depends on 1)

The computer-implemented method of claim 1, wherein the running the one or more prestart runtime commands prior to starting the container further comprises:
determining that a particular prestart runtime command is an alternative command;
determining that the particular prestart runtime command failed; and
responsive to determining that the particular prestart runtime command failed, ignoring the command failure.

### Claim 9

A computer system comprising:
a processor; and
a memory communicatively coupled with the processor, wherein the memory is encoded within instructions for starting a container that when executed by the processor perform operations comprising:
receiving a container specification, the container specification including a definition of an image, the image definition specifying the running of one or more prestart runtime commands;
inspecting the image definition to identify whether the image definition includes specifying the running of one or more prestart runtime commands; and
starting the image on a host system, wherein in response to identifying that the image definition includes running one or more prestart runtime commands, the starting of the image includes running the one or more prestart runtime commands prior to the container entering a running state.

### Claim 10 (depends on 9)

The computer system of claim 9, further comprising running the container.

### Claim 11 (depends on 9)

The computer system of claim 9, wherein the one or more prestart runtime commands includes two or more commands and the image definition specifies an order for running the two or more prestart runtime commands, further comprising:
running the two or more prestart runtime commands in the specified order.

### Claim 12 (depends on 9)

The computer system of claim 9,
wherein the image is associated with a first permission level;
wherein the running of at least one prestart runtime command requires a particular level of permission, the method further comprising:
preventing the running of the at least one prestart runtime command if the first permission level does not satisfy the particular level of permission required to run the at least one prestart runtime command.

### Claim 13 (depends on 9)

The computer system of claim 9, wherein at least one prestart runtime command is a command to call an application program interface (API) or a command to a host operating system.

### Claim 14 (depends on 9)

The computer system of claim 9, wherein at least one prestart runtime command is a command to obtain a secret provided by a secret file or a command to identify a type of environment in which a container will be built.

### Claim 15 (depends on 9)

The computer system of claim 9, wherein the running the one or more prestart runtime commands prior to starting the container further comprises:
determining that a particular prestart runtime command is a required configuration command;
determining that the particular prestart runtime command failed; and
responsive to determining that the particular prestart runtime command failed, terminating the starting of the image and generating an error message.

### Claim 16 (depends on 9)

The computer system of claim 9, wherein the running the one or more prestart runtime commands prior to starting the container further comprises:
determining that a particular prestart runtime command is an alternative command;
determining that the particular prestart runtime command failed; and
responsive to determining that the particular prestart runtime command failed, ignoring the command failure.

### Claim 17

A computer program product including a computer readable storage medium having computer readable program instructions stored thereon for causing a processor to perform operations for starting a container to perform operations for starting a container comprising:
receiving a container specification, the container specification including a definition of an image, the image definition specifying the running of one or more prestart runtime commands;
inspecting the image definition to identify whether the image definition includes specifying the running of one or more prestart runtime commands; and
starting the image on a host system, wherein in response to identifying that the image definition includes running one or more prestart runtime commands, the starting of the image includes running the one or more prestart runtime commands prior to the container entering a running state.

### Claim 18 (depends on 17)

The computer program product of claim 17, further comprising running the container.

### Claim 19 (depends on 17)

The computer program product of claim 17,
wherein the image is associated with a first permission level;
wherein the running of at least one prestart runtime command requires a particular level of permission, the method further comprising:
preventing the running of the at least one prestart runtime command if the first permission level does not satisfy the particular level of permission required to run the at least one prestart runtime command.

### Claim 20 (depends on 17)

The computer program product of claim 17, wherein the running the one or more prestart runtime commands prior to starting the container further comprises:
determining that a particular prestart runtime command is an alternative command;
determining that the particular prestart runtime command failed; and
responsive to determining that the particular prestart runtime command failed, ignoring the command failure.
