Skip to content

Commit

Permalink
bind enclave and engine to localhost
Browse files Browse the repository at this point in the history
  • Loading branch information
tedim52 committed Jan 24, 2025
1 parent 84e2fe2 commit d76bfcb
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ const (
// kill signal"
dockerKillSignal = "KILL"

expectedHostIp = "0.0.0.0"
expectedHostIp = "127.0.0.1"

// When Docker binds a container port to the host machine, it binds it to host interface 0.0.0.0
// Linux machines will use 127.0.0.1 for 0.0.0.0, but Windows machines don't
Expand Down Expand Up @@ -1738,7 +1738,7 @@ func (manager *DockerManager) getContainerHostConfig(
portMap[containerPort] = []nat.PortBinding{
// Leaving this struct empty will cause Docker to automatically choose an interface IP & port on the host machine
{
HostIP: "",
HostIP: expectedHostIp,
HostPort: "",
},
}
Expand Down

0 comments on commit d76bfcb

Please sign in to comment.