Skip to content

Commit caf3739

Browse files
committed
Add comment around default network of docker on getIpAddr of docker.go
1 parent 41ee010 commit caf3739

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pkg/app/instances/docker.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,8 @@ func (m *DockerInstanceManager) WaitOperation(zone string, _ accounts.User, name
226226
}
227227

228228
func (m *DockerInstanceManager) getIpAddr(container *types.Container) (string, error) {
229+
// When creating docker instances as default, docker instance gets belonged
230+
// to the default network named 'bridge' with getting an assigned IP.
229231
bridgeNetwork := container.NetworkSettings.Networks["bridge"]
230232
if bridgeNetwork == nil {
231233
return "", fmt.Errorf("failed to find network information of docker instance")

0 commit comments

Comments
 (0)