Appendix

Command Line Parameters

Table 1 Parameters of the ctr-img build command

CommandParameterDescription
ctr-img build--build-argString list, which contains variables required during the build.
--build-staticKey value, which is used to build binary equivalence. Currently, the following key values are included: - build-time: string, which indicates that a fixed timestamp is used to build a container image. The timestamp format is YYYY-MM-DD HH-MM-SS.
-f, --filenameString, which indicates the path of the Dockerfiles. If this parameter is not specified, the current path is used.
--formatString, which indicates the image format oci or docker (ISULABUILD_CLI_EXPERIMENTAL needs to be enabled).
--iidfileString, which indicates the ID of the image output to a local file.
-o, --outputString, which indicates the image export mode and path.
--proxyBoolean, which inherits the proxy environment variable on the host. The default value is true.
--tagString, which indicates the tag value of the image that is successfully built.
--cap-addString list, which contains permissions required by the RUN instruction during the build process.

Table 2 Parameters of the ctr-img load command

CommandParameterDescription
ctr-img load-i, --inputString, path of the local .tar package to be imported.

Table 3 Parameters of the ctr-img push command

CommandParameterDescription
ctr-img push-f, --formatString, which indicates the pushed image format oci or docker (ISULABUILD_CLI_EXPERIMENTAL needs to be enabled).

Table 4 Parameters of the ctr-img rm command

CommandParameterDescription
ctr-img rm-a, --allBoolean, which is used to delete all local persistent images.
-p, --pruneBoolean, which is used to delete all images that are stored persistently on the local host and do not have tags.

Table 5 Parameters of the ctr-img save command

CommandParameterDescription
ctr-img save-o, --outputString, which indicates the local path for storing the exported images.
ctr-img save-f, --formatString, which indicates the exported image format oci or docker (ISULABUILD_CLI_EXPERIMENTAL needs to be enabled).

Table 6 Parameters of the login command

CommandParameterDescription
login-p, --password-stdinBoolean, which indicates whether to read the password through stdin. or enter the password in interactive mode.
-u, --usernameString, which indicates the username for logging in to the image repository.

Table 7 Parameters of the logout command

CommandParameterDescription
logout-a, --allBoolean, which indicates whether to log out of all logged-in image repositories.

Table 8 Parameters of the manifest annotate command

CommandParameterDescription
manifest annotate--archSet architecture
--osSet operating system
--os-featuresSet operating system feature
--variantSet architecture variant

Communication Matrix

The isula-build component processes communicate with each other through the Unix socket file. No port is used for communication.

File and Permission

  • All isula-build operations must be performed by the root user. To perform operations as a non-privileged user, you need to configure the --group option.

  • The following table lists the file permissions involved in the running of isula-build.

File PathFile/Folder PermissionDescription
/usr/bin/isula-build550Binary file of the command line tool.
/usr/bin/isula-builder550Binary file of the isula-builder process.
/usr/lib/systemd/system/isula-build.service640systemd configuration file, which is used to manage the isula-build service.
/usr/isula-build650Root directory of the isula-builder configuration file.
/etc/isula-build/configuration.toml600General isula-builder configuration file, including the settings of the isula-builder log level, persistency directory, runtime directory, and OCI runtime.
/etc/isula-build/policy.json600Syntax file of the signature verification policy file.
/etc/isula-build/registries.toml600Configuration file of each image repository, including the available image repository list and image repository blacklist.
/etc/isula-build/storage.toml600Configuration file of the local persistent storage, including the configuration of the used storage driver.
/etc/isula-build/isula-build.pub400Asymmetric encryption public key file.
/var/run/isula_build.sock660Local socket of isula-builder.
/var/lib/isula-build700Local persistency directory.
/var/run/isula-build700Local runtime directory.
/var/lib/isula-build/tmp/[build_id]/isula-build-tmp-*.tar644Local temporary directory for storing the images when they are exported to iSulad.