NAME
API::Docker::Type::TaskSpec - User modifiable task configuration
VERSION
version 0.004
DESCRIPTION
Generated from the TaskSpec definition of spec/v1.51.yaml.
plugin_spec
Plugin spec for the service. *(Experimental release only.)*
> Note: ContainerSpec, NetworkAttachmentSpec, and PluginSpec are > mutually exclusive. PluginSpec is only used when the Runtime field > is set to plugin. NetworkAttachmentSpec is used when the Runtime > field is set to attachment. See API::Docker::Type::TaskSpec::PluginSpec.
container_spec
Container spec for the service.
> Note: ContainerSpec, NetworkAttachmentSpec, and PluginSpec are > mutually exclusive. PluginSpec is only used when the Runtime field > is set to plugin. NetworkAttachmentSpec is used when the Runtime > field is set to attachment. See API::Docker::Type::TaskSpec::ContainerSpec.
network_attachment_spec
Read-only spec type for non-swarm containers attached to swarm overlay networks.
> Note: ContainerSpec, NetworkAttachmentSpec, and PluginSpec are > mutually exclusive. PluginSpec is only used when the Runtime field > is set to plugin. NetworkAttachmentSpec is used when the Runtime > field is set to attachment. See API::Docker::Type::TaskSpec::NetworkAttachmentSpec.
resources
Resource requirements which apply to each individual container created as part of the service. See API::Docker::Type::TaskSpec::Resources.
restart_policy
Specification for the restart policy which applies to containers created as part of this service. See API::Docker::Type::TaskSpec::RestartPolicy.
placement
Undocumented upstream. Empty ({}) in both the Service and the Task example, which restrict nothing. See API::Docker::Type::TaskSpec::Placement.
force_update
A counter that triggers an update even if no relevant parameters have been changed.
runtime
Runtime is the type of runtime specified for the task executor.
networks
Specifies which networks the service should attach to. See API::Docker::Type::NetworkAttachmentConfig.
log_driver
Specifies the log driver to use for tasks created from this spec. If not present, the default one for the swarm will be used, finally falling back to the engine default if not specified. See API::Docker::Type::TaskSpec::LogDriver.
SUPPORT
Issues
Please report bugs and feature requests on GitHub at https://github.com/Getty/p5-api-docker/issues.
CONTRIBUTING
Contributions are welcome! Please fork the repository and submit a pull request.
AUTHOR
Torsten Raudssus <getty@cpan.org>
COPYRIGHT AND LICENSE
This software is copyright (c) 2026 by Torsten Raudssus <torsten@raudssus.de> https://raudssus.de/.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.