fix(edge): fix docker proxy EE-4380 (#7799)

pull/7808/head
matias-portainer 2022-10-06 11:12:39 -03:00 committed by GitHub
parent ae0b9b1e30
commit ebfb71da05
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 9 deletions

View File

@ -57,15 +57,6 @@ func (factory *ProxyFactory) newDockerHTTPProxy(endpoint *portainer.Endpoint) (h
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{
Endpoint: endpoint,
DataStore: factory.dataStore,