Does Docker Buildx Bake support adding custom hosts or extra hosts

Viewed 9

As the questions reads i cannot find support for bake to add extra hosts to the build process like

docker buildx build --add-host my-new-host.com:1.2.3.4 .

Is there an options in bake to add hosts while building? I suspect it should look a lot like:

target "my-target" {
  context = "."
  tags = ["my-image"]
  add_hosts = {
    "my-new-host.com": "1.2.3.4"
  }
}
0 Answers
Related