mirror of https://github.com/portainer/portainer
fix(edge): fix docker proxy EE-4380 (#7799)
parent
ae0b9b1e30
commit
ebfb71da05
|
@ -57,15 +57,6 @@ func (factory *ProxyFactory) newDockerHTTPProxy(endpoint *portainer.Endpoint) (h
|
||||||
endpointURL.Scheme = "https"
|
endpointURL.Scheme = "https"
|
||||||
}
|
}
|
||||||
|
|
||||||
snapshot, err := factory.dataStore.Snapshot().Snapshot(endpoint.ID)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
|
|
||||||
if snapshot.Docker != nil {
|
|
||||||
endpoint.Snapshots = []portainer.DockerSnapshot{*snapshot.Docker}
|
|
||||||
}
|
|
||||||
|
|
||||||
transportParameters := &docker.TransportParameters{
|
transportParameters := &docker.TransportParameters{
|
||||||
Endpoint: endpoint,
|
Endpoint: endpoint,
|
||||||
DataStore: factory.dataStore,
|
DataStore: factory.dataStore,
|
||||||
|
|
Loading…
Reference in New Issue