Skip to content

Commit

Permalink
Include COMPOSE_TLS_VERSION variable in VCH environment file (#8440)
Browse files Browse the repository at this point in the history
Putting COMPOSE_TLS_VERSION=TLSv1_2 into CLI output and vch environment file. We have to manually export "COMPOSE_TLS_VERSION=TLSv1_2"  variable as docker-compose does not support earlier tls versions.
  • Loading branch information
YanzhaoLi authored Jan 3, 2019
1 parent 6b4310f commit 68968ce
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/install/management/inspect.go
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,7 @@ func (d *Dispatcher) GetDockerAPICommand(conf *config.VirtualContainerHostConfig
}
}
dEnv = append(dEnv, fmt.Sprintf("DOCKER_HOST=%s:%s", d.HostIP, d.DockerPort))
dEnv = append(dEnv, "COMPOSE_TLS_VERSION=TLSv1_2")

cmd = fmt.Sprintf("docker -H %s:%s%s info", d.HostIP, d.DockerPort, tls)
env = strings.Join(dEnv, " ")
Expand Down

0 comments on commit 68968ce

Please sign in to comment.