Files
docker-cli/cli/command/service
Albin Kerouanton 21da11c5fd docker service inspect fails when TaskTemplate.Resources is nil
When doing `docker service inspect --pretty` on services without
`TaskTemplate.Resources` or `TaskTemplate.Resources.Limits`, the command
fails. This is due to a missing check on ResourceLimitPids().

This bug has been introduced by 395a6d560d
and produces following error message:

```
Template parsing error: template: :139:10: executing "" at <.ResourceLimitPids>: error calling ResourceLimitPids: runtime error: invalid memory address or nil pointer dereference
```

Signed-off-by: Albin Kerouanton <albin@akerouanton.name>
2020-07-28 22:38:33 +02:00
..
2020-04-24 11:22:10 -05:00
2020-04-24 11:22:10 -05:00
2020-04-24 11:22:10 -05:00
2018-10-23 17:05:44 +02:00
2020-04-24 11:22:10 -05:00
2020-05-28 15:24:07 +03:00
2019-04-12 11:17:34 -05:00
2018-05-11 16:49:43 -07:00
2017-10-25 14:49:26 -04:00
2020-04-24 11:22:10 -05:00
2018-05-11 16:49:43 -07:00