The Wayback Machine - https://web.archive.org/web/20251028150532/https://github.com/docker/buildx/pull/3244
Skip to content

Conversation

@crazy-max
Copy link
Member

@crazy-max crazy-max commented Jun 16, 2025

follow-up

Adds multiple IPs support for extra hosts value using , separator for Bake.

target "default" {
  extra-hosts = {
    myhost = "1.2.3.4"
    myhostmulti = "162.242.195.81,162.242.195.82"
  }
}
FROM busybox
RUN cat /etc/hosts
$ docker buildx bake
...
#7 [2/5] RUN cat /etc/hosts
#7 0.243 127.0.0.1      localhost buildkitsandbox
#7 0.243 ::1    localhost ip6-localhost ip6-loopback
#7 0.243 1.2.3.4        myhost
#7 0.243 162.242.195.81 myhostmulti
#7 0.243 162.242.195.82 myhostmulti
#7 DONE 0.3s
@crazy-max crazy-max force-pushed the bake-extra-hosts-multi-ip branch 2 times, most recently from 68d6300 to 043698e Compare June 16, 2025 09:37
@crazy-max crazy-max changed the title bake: multi ips support for extra hosts multi ips support for extra hosts Jun 16, 2025
@crazy-max crazy-max force-pushed the bake-extra-hosts-multi-ip branch from 043698e to 8508071 Compare June 16, 2025 09:46
@crazy-max crazy-max modified the milestone: v0.25.0 Jun 16, 2025
@crazy-max crazy-max force-pushed the bake-extra-hosts-multi-ip branch from 8508071 to dda87e6 Compare June 16, 2025 09:53
@crazy-max crazy-max changed the title multi ips support for extra hosts bake: multi ips support for extra hosts Jun 16, 2025
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
@crazy-max crazy-max force-pushed the bake-extra-hosts-multi-ip branch from dda87e6 to 989978a Compare June 16, 2025 09:55
@crazy-max crazy-max marked this pull request as ready for review June 16, 2025 10:05
@tonistiigi tonistiigi merged commit 03737f1 into docker:master Jun 16, 2025
138 checks passed
@crazy-max crazy-max deleted the bake-extra-hosts-multi-ip branch June 16, 2025 16:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment