I’ve followed the documentation instructions all of the driver, config, and service stanzas but I do not see any addresses when I create a job with Nomad, the issue on GitHub is marked as resolved via a PR merge but it’s not working for me, please see: https://github.com/hashicorp/nomad/issues/3785
Copied here:
This isn’t working for me, when I view the addresses
$ sudo docker inspect --format '{{ .NetworkSettings.GlobalIPv6Address }}' server-250d454d-46f6-8fc4-26a1-3b4a38527733
2a01:4f8:c2c:bafc::3
Which shows that the container started by nomad has IP address 2a01:4f8:c2c:bafc::3
Yet when I inspect the job allocation it shows empty Addresses
ID = 250d454d
Eval ID = 597d08e7
Name = ip6-echo.example[0]
Node ID = 1e1c3ab8
Node Name = centos-4gb-nbg1-1
Job ID = ip6-echo
Job Version = 824636069392
Client Status = running
Client Description = Tasks are running
Desired Status = run
Desired Description = <none>
Created = 47s ago
Modified = 36s ago
Task "server" is "running"
Task Resources
CPU Memory Disk Addresses
0/500 MHz 4.3 MiB/256 MiB 300 MiB
Task Events:
Started At = 2019-10-01T08:57:49Z
Finished At = N/A
Total Restarts = 0
Last Restart = N/A
Recent Events:
Time Type Description
2019-10-01T10:57:49+02:00 Started Task started by client
2019-10-01T10:57:48+02:00 Driver Downloading image
2019-10-01T10:57:48+02:00 Task Setup Building Task Directory
2019-10-01T10:57:48+02:00 Received Task received by client
Here’s the jobfile for this
job "ip6-echo" {
datacenters = ["dc1"]
group "example" {
task "server" {
driver = "docker"
config {
image = "localhost:5000/express-test"
advertise_ipv6_address = true
}
resources {
cpu = 500 # 500 MHz
memory = 256 # 256MB
network {
mbits = 10
}
}
service {
name = "ip6-echo-service"
port = 5555
address_mode = "driver"
}
}
}
}