job "check-firewall" { datacenters = ["dc1"] type = "batch" group "check" { count = 1 constraint { attribute = "${attr.unique.hostname}" value = "odroid7" } task "check" { driver = "docker" config { image = "busybox" network_mode = "host" command = "sh" args = ["-c", "echo 'UFW is not installed in busybox, checking port 20202 from outside'"] } } } }