docker image inspect -f '{{.Config.Env}}' myimage

Category: Docker

docker image inspect -f '{{.Config.Env}}' myimage

Extract environment variables baked into an image

Extracts environment variables baked into an image using a Go template.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.