Skip to content
This repository has been archived by the owner on Jun 21, 2022. It is now read-only.

Commit

Permalink
fix(daemon): handle nil config (#322)
Browse files Browse the repository at this point in the history
  • Loading branch information
knqyf263 authored Nov 3, 2021
1 parent bf690f9 commit d775d7b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions image/daemon/image.go
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,10 @@ func (img *image) diffIDs() ([]v1.Hash, error) {
}

func (img *image) imageConfig(config *container.Config) v1.Config {
if config == nil {
return v1.Config{}
}

c := v1.Config{
AttachStderr: config.AttachStderr,
AttachStdin: config.AttachStdin,
Expand Down

0 comments on commit d775d7b

Please sign in to comment.