Hi
I tried to set a docker label having dots as described for watchtower
(Arguments - Watchtower) (also see Docker object labels | Docker Documentation)
group "myapp" {
task "myapp" {
driver = "docker"
config {
image = "foo/bar"
labels {
com.centurylinklabs.watchtower.enable = "true"
}
...
But nomad does not like it:
Error getting job struct: Error parsing job file from job.nomad:
job.nomad:52,11-14: Argument or block definition required; An argument or block definition is required here. To set an argument, use the equals sign "=" to introduce the argument value.
Quoting is also not possible:
labels {
"com.centurylinklabs.watchtower.enable" = "true"
}
Error getting job struct: Error parsing job file from job.nomad:
job.nomad:52,11-12: Invalid argument name; Argument names must not be quoted.
Any hints?