mirror of
https://github.com/containers/podman.git
synced 2025-08-06 19:44:14 +08:00
Merge pull request #19782 from mtrmac/specgen-duplicate-inspect
Don't re-inspect an image
This commit is contained in:
@ -68,11 +68,6 @@ func CompleteSpec(ctx context.Context, r *libpod.Runtime, s *specgen.SpecGenerat
|
|||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
if inspectData != nil {
|
if inspectData != nil {
|
||||||
inspectData, err = newImage.Inspect(ctx, nil)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
|
|
||||||
if s.HealthConfig == nil {
|
if s.HealthConfig == nil {
|
||||||
// NOTE: the health check is only set for Docker images
|
// NOTE: the health check is only set for Docker images
|
||||||
// but inspect will take care of it.
|
// but inspect will take care of it.
|
||||||
|
Reference in New Issue
Block a user