mirror of
https://github.com/docker/cli.git
synced 2026-01-13 18:22:35 +03:00
Merge pull request #28603 from thaJeztah/flipping-hosts
swap position of "host" and "ip" Upstream-commit: 8851e6ba70f8428f08a8c2cbcdad1b7532b55e43 Component: engine
This commit is contained in:
@@ -531,7 +531,7 @@ func convertService(
|
||||
func convertExtraHosts(extraHosts map[string]string) []string {
|
||||
hosts := []string{}
|
||||
for host, ip := range extraHosts {
|
||||
hosts = append(hosts, fmt.Sprintf("%s %s", host, ip))
|
||||
hosts = append(hosts, fmt.Sprintf("%s %s", ip, host))
|
||||
}
|
||||
return hosts
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user