job "test-private-registry" { datacenters = ["dc1"] type = "batch" group "test" { count = 1 # 指定运行在北京节点上 constraint { attribute = "${node.unique.name}" operator = "regexp" value = "bj-.*" } task "hello" { driver = "podman" config { image = "hello-world:latest" logging = { driver = "journald" } } resources { cpu = 100 memory = 64 } } } }