Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
quzard committed Jan 17, 2025
1 parent aed7407 commit 23253b6
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions pkg/helper/docker_center.go
Original file line number Diff line number Diff line change
Expand Up @@ -619,7 +619,10 @@ func (dc *DockerCenter) CreateInfoDetail(info types.ContainerJSON, envConfigPref
if len(ip) > 0 {
containerNameTag["_container_ip_"] = ip
}

for i := range info.Mounts {
info.Mounts[i].Source = filepath.Clean(info.Mounts[i].Source)
info.Mounts[i].Destination = filepath.Clean(info.Mounts[i].Destination)
}
did := &DockerInfoDetail{
StdoutPath: info.LogPath,
ContainerInfo: info,
Expand All @@ -628,10 +631,6 @@ func (dc *DockerCenter) CreateInfoDetail(info types.ContainerJSON, envConfigPref
ContainerIP: ip,
lastUpdateTime: time.Now(),
}
for i := range info.Mounts {
info.Mounts[i].Source = filepath.Clean(info.Mounts[i].Source)
info.Mounts[i].Destination = filepath.Clean(info.Mounts[i].Destination)
}

// Find Env Log Configs
did.FindAllEnvConfig(envConfigPrefix, selfConfigFlag)
Expand Down

0 comments on commit 23253b6

Please sign in to comment.