NAME
Container::Builder::Config - Class for the container Config specification.
DESCRIPTION
Container::Builder::Config provides a wrapper to generate a valid JSON configuration file for a Container.
METHODS
- generate_config($user = 'root', $env = ['PWD=/'], $entry = [], $cmd = [], $working_dir = '/', $layers = [])
-
Generate a JSON string for a OCI Config file. All arrays must be passed as array references. The
layersarray must be a list ofContainer::Builder::Layerobjects. - get_digest()
-
Returns the SHA256 digest of the generated config.
- get_size()
-
Returns the size (length) of the generated config.
AUTHOR
Adriaan Dens <adri@cpan.org>
COPYRIGHT
Copyright 2026- Adriaan Dens
LICENSE
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
SEE ALSO
- Part of the Container::Builder module.
- https://github.com/opencontainers/image-spec/blob/main/config.md