inspect.go: inspect env variables

Update the inspect command to show the environment variables

Signed-off-by: José Guilherme Vanz <jvanz@jvanz.com>
This commit is contained in:
José Guilherme Vanz 2019-08-09 13:23:46 -03:00
parent ee9e9dfc89
commit a778e595b3
No known key found for this signature in database
GPG Key ID: 4159E08B20565EF1

View File

@ -28,6 +28,7 @@ type inspectOutput struct {
Architecture string
Os string
Layers []string
Env []string
}
type inspectOptions struct {
@ -142,6 +143,7 @@ func (opts *inspectOptions) run(args []string, stdout io.Writer) (retErr error)
Architecture: imgInspect.Architecture,
Os: imgInspect.Os,
Layers: imgInspect.Layers,
Env: imgInspect.Env,
}
outputData.Digest, err = manifest.Digest(rawManifest)
if err != nil {