Class InspectContainerHostConfig
java.lang.Object
io.github.alersrt.pod4j.openapi.model.InspectContainerHostConfig
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2024-11-19T11:19:05.435500352+07:00[Asia/Barnaul]",
comments="Generator version: 7.7.0")
public class InspectContainerHostConfig
extends Object
nolint:revive,stylecheck // Field names are fixed for compatibility and cannot be changed.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddBindsItem(String bindsItem) addBlkioDeviceReadBpsItem(InspectBlkioThrottleDevice blkioDeviceReadBpsItem) addBlkioDeviceReadIOpsItem(InspectBlkioThrottleDevice blkioDeviceReadIOpsItem) addBlkioDeviceWriteBpsItem(InspectBlkioThrottleDevice blkioDeviceWriteBpsItem) addBlkioDeviceWriteIOpsItem(InspectBlkioThrottleDevice blkioDeviceWriteIOpsItem) addBlkioWeightDeviceItem(InspectBlkioWeightDevice blkioWeightDeviceItem) addCapAddItem(String capAddItem) addCapDropItem(String capDropItem) addConsoleSizeItem(Integer consoleSizeItem) addDevicesItem(InspectDevice devicesItem) addDnsItem(String dnsItem) addDnsOptionsItem(String dnsOptionsItem) addDnsSearchItem(String dnsSearchItem) addExtraHostsItem(String extraHostsItem) addGroupAddItem(String groupAddItem) addLinksItem(String linksItem) addSecurityOptItem(String securityOptItem) addUlimitsItem(InspectUlimit ulimitsItem) addVolumesFromItem(String volumesFromItem) annotations(Map<String, String> annotations) autoRemove(Boolean autoRemove) autoRemoveImage(Boolean autoRemoveImage) blkioDeviceReadBps(List<InspectBlkioThrottleDevice> blkioDeviceReadBps) blkioDeviceReadIOps(List<InspectBlkioThrottleDevice> blkioDeviceReadIOps) blkioDeviceWriteBps(List<InspectBlkioThrottleDevice> blkioDeviceWriteBps) blkioDeviceWriteIOps(List<InspectBlkioThrottleDevice> blkioDeviceWriteIOps) blkioWeight(Integer blkioWeight) blkioWeightDevice(List<InspectBlkioWeightDevice> blkioWeightDevice) cgroupConf(Map<String, String> cgroupConf) cgroupManager(String cgroupManager) cgroupMode(String cgroupMode) cgroupParent(String cgroupParent) consoleSize(List<Integer> consoleSize) containerIDFile(String containerIDFile) cpuPercent(Integer cpuPercent) cpuRealtimePeriod(Integer cpuRealtimePeriod) cpuRealtimeRuntime(Long cpuRealtimeRuntime) cpusetCpus(String cpusetCpus) cpusetMems(String cpusetMems) devices(List<InspectDevice> devices) dnsOptions(List<String> dnsOptions) booleanextraHosts(List<String> extraHosts) static InspectContainerHostConfigCreate an instance of InspectContainerHostConfig given an JSON stringAnnotations are provided to the runtime when the container is started.AutoRemove is whether the container will be automatically removed on exiting.AutoRemoveImage is whether the container's image will be automatically removed on exiting.getBinds()Binds contains an array of user-added mounts.BlkioDeviceReadBps is an array of I/O throttle parameters for individual device nodes.BlkioDeviceReadIOps is an array of I/O throttle parameters for individual device nodes.BlkioDeviceWriteBps is an array of I/O throttle parameters for individual device nodes.BlkioDeviceWriteIOps is an array of I/O throttle parameters for individual device nodes.BlkioWeight indicates the I/O resources allocated to the container.BlkioWeightDevice is an array of I/O resource priorities for individual device nodes.CapAdd is a list of capabilities added to the container.CapDrop is a list of capabilities removed from the container.Cgroup contains the container's cgroup.CgroupConf is the configuration for cgroup v2.CgroupManager is the cgroup manager used by the container.CgroupMode is the configuration of the container's cgroup namespace.CgroupParent is the Cgroup parent of the container.Cgroups contains the container's Cgroup mode.ConsoleSize is an array of 2 integers showing the size of the container's console.ContainerIDFile is a file created during container creation to hold the ID of the created container.CpuCount is Windows-only and not presently implemented.CpuPercent is Windows-only and not presently implemented.CpuPeriod is the length of a CPU period in microseconds.CpuPeriod is the amount of time (in microseconds) that a container can use the CPU in every CpuPeriod.CpuRealtimePeriod is the length of time (in microseconds) of the CPU realtime period.CpuRealtimeRuntime is the length of time (in microseconds) allocated for realtime tasks within every CpuRealtimePeriod.CpusetCpus is the set of CPUs that the container will execute on.CpusetMems is the set of memory nodes the container will use.CpuShares indicates the CPU resources allocated to the container.Devices is a list of device nodes that will be added to the container.DiskQuota is the maximum amount of disk space the container may use (in bytes).getDns()Dns is a list of DNS nameservers that will be added to the container's resolv.confDnsOptions is a list of DNS options that will be set in the container's resolv.confDnsSearch is a list of DNS search domains that will be set in the container's resolv.confExtraHosts contains hosts that will be added to the container's etc/hosts.GroupAdd contains groups that the user inside the container will be added to.Get idMappingsgetInit()Init indicates whether the container has an init mounted into it.IntelRdtClosID defines the Intel RDT CAT Class Of Service (COS) that all processes of the container should run in.IOMaximumBandwidth is Windows-only and not presently implemented.IOMaximumIOps is Windows-only and not presently implemented.IpcMode represents the configuration of the container's IPC namespace.Isolation is presently unused and provided solely for Docker compatibility.KernelMemory is the maximum amount of memory the kernel will devote to the container.getLinks()Links is unused, and provided purely for Docker compatibility.Get logConfigMemory indicates the memory resources allocated to the container.MemoryReservation is the reservation (soft limit) of memory available to the container.MemorySwap is the total limit for all memory available to the container, including swap.MemorySwappiness is the willingness of the kernel to page container memory to swap.NanoCpus indicates number of CPUs allocated to the container.NetworkMode is the configuration of the container's network namespace.OomKillDisable indicates whether the kernel OOM killer is disabled for the container.OOMScoreAdj is an adjustment that will be made to the container's OOM score.PidMode represents the configuration of the container's PID namespace.PidsLimit is the maximum number of PIDs that may be created within the container.PortBindings contains the container's port bindings.Privileged indicates whether the container is running with elevated privileges.PublishAllPorts indicates whether image ports are being published.ReadonlyRootfs is whether the container will be mounted read-only.Get restartPolicyRuntime is provided purely for Docker compatibility.SecurityOpt is a list of security-related options that are set in the container.Get shmSizegetTmpfs()Tmpfs is a list of tmpfs filesystems that will be mounted into the container.Ulimits is a set of ulimits that will be set within the container.UsernsMode represents the configuration of the container's user namespace.UTSMode represents the configuration of the container's UID namespace.VolumeDriver is presently unused and is retained for Docker compatibility.VolumesFrom is a list of containers which this container uses volumes from.inthashCode()idMappings(InspectIDMappings idMappings) intelRdtClosID(String intelRdtClosID) ioMaximumBandwidth(Integer ioMaximumBandwidth) ioMaximumIOps(Integer ioMaximumIOps) kernelMemory(Long kernelMemory) logConfig(InspectLogConfig logConfig) memoryReservation(Long memoryReservation) memorySwap(Long memorySwap) memorySwappiness(Long memorySwappiness) networkMode(String networkMode) oomKillDisable(Boolean oomKillDisable) oomScoreAdj(Long oomScoreAdj) portBindings(Map<String, List<InspectHostPort>> portBindings) privileged(Boolean privileged) publishAllPorts(Boolean publishAllPorts) putAnnotationsItem(String key, String annotationsItem) putCgroupConfItem(String key, String cgroupConfItem) putPortBindingsItem(String key, List<InspectHostPort> portBindingsItem) putTmpfsItem(String key, String tmpfsItem) readonlyRootfs(Boolean readonlyRootfs) restartPolicy(InspectRestartPolicy restartPolicy) securityOpt(List<String> securityOpt) voidsetAnnotations(Map<String, String> annotations) voidsetAutoRemove(Boolean autoRemove) voidsetAutoRemoveImage(Boolean autoRemoveImage) voidvoidsetBlkioDeviceReadBps(List<InspectBlkioThrottleDevice> blkioDeviceReadBps) voidsetBlkioDeviceReadIOps(List<InspectBlkioThrottleDevice> blkioDeviceReadIOps) voidsetBlkioDeviceWriteBps(List<InspectBlkioThrottleDevice> blkioDeviceWriteBps) voidsetBlkioDeviceWriteIOps(List<InspectBlkioThrottleDevice> blkioDeviceWriteIOps) voidsetBlkioWeight(Integer blkioWeight) voidsetBlkioWeightDevice(List<InspectBlkioWeightDevice> blkioWeightDevice) voidvoidsetCapDrop(List<String> capDrop) voidvoidsetCgroupConf(Map<String, String> cgroupConf) voidsetCgroupManager(String cgroupManager) voidsetCgroupMode(String cgroupMode) voidsetCgroupParent(String cgroupParent) voidsetCgroups(String cgroups) voidsetConsoleSize(List<Integer> consoleSize) voidsetContainerIDFile(String containerIDFile) voidsetCpuCount(Integer cpuCount) voidsetCpuPercent(Integer cpuPercent) voidsetCpuPeriod(Integer cpuPeriod) voidsetCpuQuota(Long cpuQuota) voidsetCpuRealtimePeriod(Integer cpuRealtimePeriod) voidsetCpuRealtimeRuntime(Long cpuRealtimeRuntime) voidsetCpusetCpus(String cpusetCpus) voidsetCpusetMems(String cpusetMems) voidsetCpuShares(Integer cpuShares) voidsetDevices(List<InspectDevice> devices) voidsetDiskQuota(Integer diskQuota) voidvoidsetDnsOptions(List<String> dnsOptions) voidsetDnsSearch(List<String> dnsSearch) voidsetExtraHosts(List<String> extraHosts) voidsetGroupAdd(List<String> groupAdd) voidsetIdMappings(InspectIDMappings idMappings) voidvoidsetIntelRdtClosID(String intelRdtClosID) voidsetIoMaximumBandwidth(Integer ioMaximumBandwidth) voidsetIoMaximumIOps(Integer ioMaximumIOps) voidsetIpcMode(String ipcMode) voidsetIsolation(String isolation) voidsetKernelMemory(Long kernelMemory) voidvoidsetLogConfig(InspectLogConfig logConfig) voidvoidsetMemoryReservation(Long memoryReservation) voidsetMemorySwap(Long memorySwap) voidsetMemorySwappiness(Long memorySwappiness) voidsetNanoCpus(Long nanoCpus) voidsetNetworkMode(String networkMode) voidsetOomKillDisable(Boolean oomKillDisable) voidsetOomScoreAdj(Long oomScoreAdj) voidsetPidMode(String pidMode) voidsetPidsLimit(Long pidsLimit) voidsetPortBindings(Map<String, List<InspectHostPort>> portBindings) voidsetPrivileged(Boolean privileged) voidsetPublishAllPorts(Boolean publishAllPorts) voidsetReadonlyRootfs(Boolean readonlyRootfs) voidsetRestartPolicy(InspectRestartPolicy restartPolicy) voidsetRuntime(String runtime) voidsetSecurityOpt(List<String> securityOpt) voidsetShmSize(Long shmSize) voidvoidsetUlimits(List<InspectUlimit> ulimits) voidsetUsernsMode(String usernsMode) voidsetUtSMode(String utSMode) voidsetVolumeDriver(String volumeDriver) voidsetVolumesFrom(List<String> volumesFrom) toJson()Convert an instance of InspectContainerHostConfig to an JSON stringtoString()ulimits(List<InspectUlimit> ulimits) usernsMode(String usernsMode) static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues foundvolumeDriver(String volumeDriver) volumesFrom(List<String> volumesFrom)
-
Field Details
-
SERIALIZED_NAME_ANNOTATIONS
- See Also:
-
SERIALIZED_NAME_AUTO_REMOVE
- See Also:
-
SERIALIZED_NAME_AUTO_REMOVE_IMAGE
- See Also:
-
SERIALIZED_NAME_BINDS
- See Also:
-
SERIALIZED_NAME_BLKIO_DEVICE_READ_BPS
- See Also:
-
SERIALIZED_NAME_BLKIO_DEVICE_READ_I_OPS
- See Also:
-
SERIALIZED_NAME_BLKIO_DEVICE_WRITE_BPS
- See Also:
-
SERIALIZED_NAME_BLKIO_DEVICE_WRITE_I_OPS
- See Also:
-
SERIALIZED_NAME_BLKIO_WEIGHT
- See Also:
-
SERIALIZED_NAME_BLKIO_WEIGHT_DEVICE
- See Also:
-
SERIALIZED_NAME_CAP_ADD
- See Also:
-
SERIALIZED_NAME_CAP_DROP
- See Also:
-
SERIALIZED_NAME_CGROUP
- See Also:
-
SERIALIZED_NAME_CGROUP_CONF
- See Also:
-
SERIALIZED_NAME_CGROUP_MANAGER
- See Also:
-
SERIALIZED_NAME_CGROUP_MODE
- See Also:
-
SERIALIZED_NAME_CGROUP_PARENT
- See Also:
-
SERIALIZED_NAME_CGROUPS
- See Also:
-
SERIALIZED_NAME_CONSOLE_SIZE
- See Also:
-
SERIALIZED_NAME_CONTAINER_I_D_FILE
- See Also:
-
SERIALIZED_NAME_CPU_COUNT
- See Also:
-
SERIALIZED_NAME_CPU_PERCENT
- See Also:
-
SERIALIZED_NAME_CPU_PERIOD
- See Also:
-
SERIALIZED_NAME_CPU_QUOTA
- See Also:
-
SERIALIZED_NAME_CPU_REALTIME_PERIOD
- See Also:
-
SERIALIZED_NAME_CPU_REALTIME_RUNTIME
- See Also:
-
SERIALIZED_NAME_CPU_SHARES
- See Also:
-
SERIALIZED_NAME_CPUSET_CPUS
- See Also:
-
SERIALIZED_NAME_CPUSET_MEMS
- See Also:
-
SERIALIZED_NAME_DEVICES
- See Also:
-
SERIALIZED_NAME_DISK_QUOTA
- See Also:
-
SERIALIZED_NAME_DNS
- See Also:
-
SERIALIZED_NAME_DNS_OPTIONS
- See Also:
-
SERIALIZED_NAME_DNS_SEARCH
- See Also:
-
SERIALIZED_NAME_EXTRA_HOSTS
- See Also:
-
SERIALIZED_NAME_GROUP_ADD
- See Also:
-
SERIALIZED_NAME_ID_MAPPINGS
- See Also:
-
SERIALIZED_NAME_IO_MAXIMUM_BANDWIDTH
- See Also:
-
SERIALIZED_NAME_IO_MAXIMUM_I_OPS
- See Also:
-
SERIALIZED_NAME_INIT
- See Also:
-
SERIALIZED_NAME_INTEL_RDT_CLOS_I_D
- See Also:
-
SERIALIZED_NAME_IPC_MODE
- See Also:
-
SERIALIZED_NAME_ISOLATION
- See Also:
-
SERIALIZED_NAME_KERNEL_MEMORY
- See Also:
-
SERIALIZED_NAME_LINKS
- See Also:
-
SERIALIZED_NAME_LOG_CONFIG
- See Also:
-
SERIALIZED_NAME_MEMORY
- See Also:
-
SERIALIZED_NAME_MEMORY_RESERVATION
- See Also:
-
SERIALIZED_NAME_MEMORY_SWAP
- See Also:
-
SERIALIZED_NAME_MEMORY_SWAPPINESS
- See Also:
-
SERIALIZED_NAME_NANO_CPUS
- See Also:
-
SERIALIZED_NAME_NETWORK_MODE
- See Also:
-
SERIALIZED_NAME_OOM_KILL_DISABLE
- See Also:
-
SERIALIZED_NAME_OOM_SCORE_ADJ
- See Also:
-
SERIALIZED_NAME_PID_MODE
- See Also:
-
SERIALIZED_NAME_PIDS_LIMIT
- See Also:
-
SERIALIZED_NAME_PORT_BINDINGS
- See Also:
-
SERIALIZED_NAME_PRIVILEGED
- See Also:
-
SERIALIZED_NAME_PUBLISH_ALL_PORTS
- See Also:
-
SERIALIZED_NAME_READONLY_ROOTFS
- See Also:
-
SERIALIZED_NAME_RESTART_POLICY
- See Also:
-
SERIALIZED_NAME_RUNTIME
- See Also:
-
SERIALIZED_NAME_SECURITY_OPT
- See Also:
-
SERIALIZED_NAME_SHM_SIZE
- See Also:
-
SERIALIZED_NAME_TMPFS
- See Also:
-
SERIALIZED_NAME_UT_S_MODE
- See Also:
-
SERIALIZED_NAME_ULIMITS
- See Also:
-
SERIALIZED_NAME_USERNS_MODE
- See Also:
-
SERIALIZED_NAME_VOLUME_DRIVER
- See Also:
-
SERIALIZED_NAME_VOLUMES_FROM
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
InspectContainerHostConfig
public InspectContainerHostConfig()
-
-
Method Details
-
annotations
-
putAnnotationsItem
-
getAnnotations
Annotations are provided to the runtime when the container is started.- Returns:
- annotations
-
setAnnotations
-
autoRemove
-
getAutoRemove
AutoRemove is whether the container will be automatically removed on exiting. It is not handled directly within libpod and is stored in an annotation.- Returns:
- autoRemove
-
setAutoRemove
-
autoRemoveImage
-
getAutoRemoveImage
AutoRemoveImage is whether the container's image will be automatically removed on exiting. It is not handled directly within libpod and is stored in an annotation.- Returns:
- autoRemoveImage
-
setAutoRemoveImage
-
binds
-
addBindsItem
-
getBinds
Binds contains an array of user-added mounts. Both volume mounts and named volumes are included. Tmpfs mounts are NOT included. In 'docker inspect' this is separated into 'Binds' and 'Mounts' based on how a mount was added. We do not make this distinction and do not include a Mounts field in inspect. Format: <src>:<destination>[:<comma-separated options>]- Returns:
- binds
-
setBinds
-
blkioDeviceReadBps
public InspectContainerHostConfig blkioDeviceReadBps(List<InspectBlkioThrottleDevice> blkioDeviceReadBps) -
addBlkioDeviceReadBpsItem
public InspectContainerHostConfig addBlkioDeviceReadBpsItem(InspectBlkioThrottleDevice blkioDeviceReadBpsItem) -
getBlkioDeviceReadBps
BlkioDeviceReadBps is an array of I/O throttle parameters for individual device nodes. This specifically sets read rate cap in bytes per second for device nodes. As with BlkioWeightDevice, we pull the path from /sys/dev, and we don't guarantee the path will be identical to the original (though the node will be).- Returns:
- blkioDeviceReadBps
-
setBlkioDeviceReadBps
-
blkioDeviceReadIOps
public InspectContainerHostConfig blkioDeviceReadIOps(List<InspectBlkioThrottleDevice> blkioDeviceReadIOps) -
addBlkioDeviceReadIOpsItem
public InspectContainerHostConfig addBlkioDeviceReadIOpsItem(InspectBlkioThrottleDevice blkioDeviceReadIOpsItem) -
getBlkioDeviceReadIOps
BlkioDeviceReadIOps is an array of I/O throttle parameters for individual device nodes. This specifically sets the read rate cap in iops per second for device nodes. As with BlkioWeightDevice, we pull the path from /sys/dev, and we don't guarantee the path will be identical to the original (though the node will be).- Returns:
- blkioDeviceReadIOps
-
setBlkioDeviceReadIOps
-
blkioDeviceWriteBps
public InspectContainerHostConfig blkioDeviceWriteBps(List<InspectBlkioThrottleDevice> blkioDeviceWriteBps) -
addBlkioDeviceWriteBpsItem
public InspectContainerHostConfig addBlkioDeviceWriteBpsItem(InspectBlkioThrottleDevice blkioDeviceWriteBpsItem) -
getBlkioDeviceWriteBps
BlkioDeviceWriteBps is an array of I/O throttle parameters for individual device nodes. this specifically sets write rate cap in bytes per second for device nodes. as with BlkioWeightDevice, we pull the path from /sys/dev, and we don't guarantee the path will be identical to the original (though the node will be).- Returns:
- blkioDeviceWriteBps
-
setBlkioDeviceWriteBps
-
blkioDeviceWriteIOps
public InspectContainerHostConfig blkioDeviceWriteIOps(List<InspectBlkioThrottleDevice> blkioDeviceWriteIOps) -
addBlkioDeviceWriteIOpsItem
public InspectContainerHostConfig addBlkioDeviceWriteIOpsItem(InspectBlkioThrottleDevice blkioDeviceWriteIOpsItem) -
getBlkioDeviceWriteIOps
BlkioDeviceWriteIOps is an array of I/O throttle parameters for individual device nodes. This specifically sets the write rate cap in iops per second for device nodes. As with BlkioWeightDevice, we pull the path from /sys/dev, and we don't guarantee the path will be identical to the original (though the node will be).- Returns:
- blkioDeviceWriteIOps
-
setBlkioDeviceWriteIOps
-
blkioWeight
-
getBlkioWeight
BlkioWeight indicates the I/O resources allocated to the container. It is a relative weight in the scheduler for assigning I/O time versus other Cgroups.- Returns:
- blkioWeight
-
setBlkioWeight
-
blkioWeightDevice
public InspectContainerHostConfig blkioWeightDevice(List<InspectBlkioWeightDevice> blkioWeightDevice) -
addBlkioWeightDeviceItem
public InspectContainerHostConfig addBlkioWeightDeviceItem(InspectBlkioWeightDevice blkioWeightDeviceItem) -
getBlkioWeightDevice
BlkioWeightDevice is an array of I/O resource priorities for individual device nodes. Unfortunately, the spec only stores the device's Major/Minor numbers and not the path, which is used here. Fortunately, the kernel provides an interface for retrieving the path of a given node by major:minor at /sys/dev/. However, the exact path in use may not be what was used in the original CLI invocation - though it is guaranteed that the device node will be the same, and using the given path will be functionally identical.- Returns:
- blkioWeightDevice
-
setBlkioWeightDevice
-
capAdd
-
addCapAddItem
-
getCapAdd
CapAdd is a list of capabilities added to the container. It is not directly stored by Libpod, and instead computed from the capabilities listed in the container's spec, compared against a set of default capabilities.- Returns:
- capAdd
-
setCapAdd
-
capDrop
-
addCapDropItem
-
getCapDrop
CapDrop is a list of capabilities removed from the container. It is not directly stored by libpod, and instead computed from the capabilities listed in the container's spec, compared against a set of default capabilities.- Returns:
- capDrop
-
setCapDrop
-
cgroup
-
getCgroup
Cgroup contains the container's cgroup. It is presently not populated. TODO.- Returns:
- cgroup
-
setCgroup
-
cgroupConf
-
putCgroupConfItem
-
getCgroupConf
CgroupConf is the configuration for cgroup v2.- Returns:
- cgroupConf
-
setCgroupConf
-
cgroupManager
-
getCgroupManager
CgroupManager is the cgroup manager used by the container. At present, allowed values are either \"cgroupfs\" or \"systemd\".- Returns:
- cgroupManager
-
setCgroupManager
-
cgroupMode
-
getCgroupMode
CgroupMode is the configuration of the container's cgroup namespace. Populated as follows: private - a cgroup namespace has been created host - No cgroup namespace created container:<id> - Using another container's cgroup namespace ns:<path> - A path to a cgroup namespace has been specified- Returns:
- cgroupMode
-
setCgroupMode
-
cgroupParent
-
getCgroupParent
CgroupParent is the Cgroup parent of the container. Only set if not default.- Returns:
- cgroupParent
-
setCgroupParent
-
cgroups
-
getCgroups
Cgroups contains the container's Cgroup mode. Allowed values are \"default\" (container is creating Cgroups) and \"disabled\" (container is not creating Cgroups). This is Libpod-specific and not included in `docker inspect`.- Returns:
- cgroups
-
setCgroups
-
consoleSize
-
addConsoleSizeItem
-
getConsoleSize
ConsoleSize is an array of 2 integers showing the size of the container's console. It is only set if the container is creating a terminal. TODO.- Returns:
- consoleSize
-
setConsoleSize
-
containerIDFile
-
getContainerIDFile
ContainerIDFile is a file created during container creation to hold the ID of the created container. This is not handled within libpod and is stored in an annotation.- Returns:
- containerIDFile
-
setContainerIDFile
-
cpuCount
-
getCpuCount
CpuCount is Windows-only and not presently implemented.- Returns:
- cpuCount
-
setCpuCount
-
cpuPercent
-
getCpuPercent
CpuPercent is Windows-only and not presently implemented.- Returns:
- cpuPercent
-
setCpuPercent
-
cpuPeriod
-
getCpuPeriod
CpuPeriod is the length of a CPU period in microseconds. It relates directly to CpuQuota.- Returns:
- cpuPeriod
-
setCpuPeriod
-
cpuQuota
-
getCpuQuota
CpuPeriod is the amount of time (in microseconds) that a container can use the CPU in every CpuPeriod.- Returns:
- cpuQuota
-
setCpuQuota
-
cpuRealtimePeriod
-
getCpuRealtimePeriod
CpuRealtimePeriod is the length of time (in microseconds) of the CPU realtime period. If set to 0, no time will be allocated to realtime tasks.- Returns:
- cpuRealtimePeriod
-
setCpuRealtimePeriod
-
cpuRealtimeRuntime
-
getCpuRealtimeRuntime
CpuRealtimeRuntime is the length of time (in microseconds) allocated for realtime tasks within every CpuRealtimePeriod.- Returns:
- cpuRealtimeRuntime
-
setCpuRealtimeRuntime
-
cpusetCpus
-
getCpusetCpus
CpusetCpus is the set of CPUs that the container will execute on. Formatted as `0-3` or `0,2`. Default (if unset) is all CPUs.- Returns:
- cpusetCpus
-
setCpusetCpus
-
cpusetMems
-
getCpusetMems
CpusetMems is the set of memory nodes the container will use. Formatted as `0-3` or `0,2`. Default (if unset) is all memory nodes.- Returns:
- cpusetMems
-
setCpusetMems
-
devices
-
addDevicesItem
-
getDevices
Devices is a list of device nodes that will be added to the container. These are stored in the OCI spec only as type, major, minor while we display the host path. We convert this with /sys/dev, but we cannot guarantee that the host path will be identical - only that the actual device will be.- Returns:
- devices
-
setDevices
-
diskQuota
-
getDiskQuota
DiskQuota is the maximum amount of disk space the container may use (in bytes). Presently not populated. TODO.- Returns:
- diskQuota
-
setDiskQuota
-
dns
-
addDnsItem
-
getDns
Dns is a list of DNS nameservers that will be added to the container's resolv.conf- Returns:
- dns
-
setDns
-
dnsOptions
-
addDnsOptionsItem
-
getDnsOptions
DnsOptions is a list of DNS options that will be set in the container's resolv.conf- Returns:
- dnsOptions
-
setDnsOptions
-
dnsSearch
-
addDnsSearchItem
-
getDnsSearch
DnsSearch is a list of DNS search domains that will be set in the container's resolv.conf- Returns:
- dnsSearch
-
setDnsSearch
-
extraHosts
-
addExtraHostsItem
-
getExtraHosts
ExtraHosts contains hosts that will be added to the container's etc/hosts.- Returns:
- extraHosts
-
setExtraHosts
-
groupAdd
-
addGroupAddItem
-
getGroupAdd
GroupAdd contains groups that the user inside the container will be added to.- Returns:
- groupAdd
-
setGroupAdd
-
idMappings
-
getIdMappings
Get idMappings- Returns:
- idMappings
-
setIdMappings
-
ioMaximumBandwidth
-
getIoMaximumBandwidth
IOMaximumBandwidth is Windows-only and not presently implemented.- Returns:
- ioMaximumBandwidth
-
setIoMaximumBandwidth
-
ioMaximumIOps
-
getIoMaximumIOps
IOMaximumIOps is Windows-only and not presently implemented.- Returns:
- ioMaximumIOps
-
setIoMaximumIOps
-
init
-
getInit
Init indicates whether the container has an init mounted into it.- Returns:
- init
-
setInit
-
intelRdtClosID
-
getIntelRdtClosID
IntelRdtClosID defines the Intel RDT CAT Class Of Service (COS) that all processes of the container should run in.- Returns:
- intelRdtClosID
-
setIntelRdtClosID
-
ipcMode
-
getIpcMode
IpcMode represents the configuration of the container's IPC namespace. Populated as follows: \"\" (empty string) - Default, an IPC namespace will be created host - No IPC namespace created container:<id> - Using another container's IPC namespace ns:<path> - A path to an IPC namespace has been specified- Returns:
- ipcMode
-
setIpcMode
-
isolation
-
getIsolation
Isolation is presently unused and provided solely for Docker compatibility.- Returns:
- isolation
-
setIsolation
-
kernelMemory
-
getKernelMemory
KernelMemory is the maximum amount of memory the kernel will devote to the container.- Returns:
- kernelMemory
-
setKernelMemory
-
links
-
addLinksItem
-
getLinks
Links is unused, and provided purely for Docker compatibility.- Returns:
- links
-
setLinks
-
logConfig
-
getLogConfig
Get logConfig- Returns:
- logConfig
-
setLogConfig
-
memory
-
getMemory
Memory indicates the memory resources allocated to the container. This is the limit (in bytes) of RAM the container may use.- Returns:
- memory
-
setMemory
-
memoryReservation
-
getMemoryReservation
MemoryReservation is the reservation (soft limit) of memory available to the container. Soft limits are warnings only and can be exceeded.- Returns:
- memoryReservation
-
setMemoryReservation
-
memorySwap
-
getMemorySwap
MemorySwap is the total limit for all memory available to the container, including swap. 0 indicates that there is no limit to the amount of memory available.- Returns:
- memorySwap
-
setMemorySwap
-
memorySwappiness
-
getMemorySwappiness
MemorySwappiness is the willingness of the kernel to page container memory to swap. It is an integer from 0 to 100, with low numbers being more likely to be put into swap. 1, the default, will not set swappiness and use the system defaults.- Returns:
- memorySwappiness
-
setMemorySwappiness
-
nanoCpus
-
getNanoCpus
NanoCpus indicates number of CPUs allocated to the container. It is an integer where one full CPU is indicated by 1000000000 (one billion). Thus, 2.5 CPUs (fractional portions of CPUs are allowed) would be 2500000000 (2.5 billion). In 'docker inspect' this is set exclusively of two further options in the output (CpuPeriod and CpuQuota) which are both used to implement this functionality. We can't distinguish here, so if CpuQuota is set to the default of 100000, we will set both CpuQuota, CpuPeriod, and NanoCpus. If CpuQuota is not the default, we will not set NanoCpus.- Returns:
- nanoCpus
-
setNanoCpus
-
networkMode
-
getNetworkMode
NetworkMode is the configuration of the container's network namespace. Populated as follows: default - A network namespace is being created and configured via CNI none - A network namespace is being created, not configured via CNI host - No network namespace created container:<id> - Using another container's network namespace ns:<path> - A path to a network namespace has been specified- Returns:
- networkMode
-
setNetworkMode
-
oomKillDisable
-
getOomKillDisable
OomKillDisable indicates whether the kernel OOM killer is disabled for the container.- Returns:
- oomKillDisable
-
setOomKillDisable
-
oomScoreAdj
-
getOomScoreAdj
OOMScoreAdj is an adjustment that will be made to the container's OOM score.- Returns:
- oomScoreAdj
-
setOomScoreAdj
-
pidMode
-
getPidMode
PidMode represents the configuration of the container's PID namespace. Populated as follows: \"\" (empty string) - Default, a PID namespace will be created host - No PID namespace created container:<id> - Using another container's PID namespace ns:<path> - A path to a PID namespace has been specified- Returns:
- pidMode
-
setPidMode
-
pidsLimit
-
getPidsLimit
PidsLimit is the maximum number of PIDs that may be created within the container. 0, the default, indicates no limit.- Returns:
- pidsLimit
-
setPidsLimit
-
portBindings
-
putPortBindingsItem
public InspectContainerHostConfig putPortBindingsItem(String key, List<InspectHostPort> portBindingsItem) -
getPortBindings
PortBindings contains the container's port bindings. It is formatted as map[string][]InspectHostPort. The string key here is formatted as <integer port number>/<protocol> and represents the container port. A single container port may be bound to multiple host ports (on different IPs).- Returns:
- portBindings
-
setPortBindings
-
privileged
-
getPrivileged
Privileged indicates whether the container is running with elevated privileges. This has a very specific meaning in the Docker sense, so it's very difficult to decode from the spec and config, and so is stored as an annotation.- Returns:
- privileged
-
setPrivileged
-
publishAllPorts
-
getPublishAllPorts
PublishAllPorts indicates whether image ports are being published. This is not directly stored in libpod and is saved as an annotation.- Returns:
- publishAllPorts
-
setPublishAllPorts
-
readonlyRootfs
-
getReadonlyRootfs
ReadonlyRootfs is whether the container will be mounted read-only.- Returns:
- readonlyRootfs
-
setReadonlyRootfs
-
restartPolicy
-
getRestartPolicy
Get restartPolicy- Returns:
- restartPolicy
-
setRestartPolicy
-
runtime
-
getRuntime
Runtime is provided purely for Docker compatibility. It is set unconditionally to \"oci\" as Podman does not presently support non-OCI runtimes.- Returns:
- runtime
-
setRuntime
-
securityOpt
-
addSecurityOptItem
-
getSecurityOpt
SecurityOpt is a list of security-related options that are set in the container.- Returns:
- securityOpt
-
setSecurityOpt
-
shmSize
-
getShmSize
Get shmSize- Returns:
- shmSize
-
setShmSize
-
tmpfs
-
putTmpfsItem
-
getTmpfs
Tmpfs is a list of tmpfs filesystems that will be mounted into the container. It is a map of destination path to options for the mount.- Returns:
- tmpfs
-
setTmpfs
-
utSMode
-
getUtSMode
UTSMode represents the configuration of the container's UID namespace. Populated as follows: \"\" (empty string) - Default, a UTS namespace will be created host - no UTS namespace created container:<id> - Using another container's UTS namespace ns:<path> - A path to a UTS namespace has been specified- Returns:
- utSMode
-
setUtSMode
-
ulimits
-
addUlimitsItem
-
getUlimits
Ulimits is a set of ulimits that will be set within the container.- Returns:
- ulimits
-
setUlimits
-
usernsMode
-
getUsernsMode
UsernsMode represents the configuration of the container's user namespace. When running rootless, a user namespace is created outside of libpod to allow some privileged operations. This will not be reflected here. Populated as follows: \"\" (empty string) - No user namespace will be created private - The container will be run in a user namespace container:<id> - Using another container's user namespace ns:<path> - A path to a user namespace has been specified TODO Rootless has an additional 'keep-id' option, presently not reflected here.- Returns:
- usernsMode
-
setUsernsMode
-
volumeDriver
-
getVolumeDriver
VolumeDriver is presently unused and is retained for Docker compatibility.- Returns:
- volumeDriver
-
setVolumeDriver
-
volumesFrom
-
addVolumesFromItem
-
getVolumesFrom
VolumesFrom is a list of containers which this container uses volumes from. This is not handled directly within libpod and is stored in an annotation. It is formatted as an array of container names and IDs.- Returns:
- volumesFrom
-
setVolumesFrom
-
equals
-
hashCode
public int hashCode() -
toString
-
validateJsonElement
Validates the JSON Element and throws an exception if issues found- Parameters:
jsonElement- JSON Element- Throws:
IOException- if the JSON Element is invalid with respect to InspectContainerHostConfig
-
fromJson
Create an instance of InspectContainerHostConfig given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of InspectContainerHostConfig
- Throws:
IOException- if the JSON string is invalid with respect to InspectContainerHostConfig
-
toJson
Convert an instance of InspectContainerHostConfig to an JSON string- Returns:
- JSON string
-