Skip to content

Instantly share code, notes, and snippets.

@drmikecrowe
Forked from lalyos/generate-compose.sh
Last active August 29, 2015 14:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save drmikecrowe/6d918439299f1fc4d6ef to your computer and use it in GitHub Desktop.
Save drmikecrowe/6d918439299f1fc4d6ef to your computer and use it in GitHub Desktop.
docker-yml() {
docker inspect -f $'
{{.Name}}
image: {{.Config.Image}}
entrypoint: {{json .Config.Entrypoint}}
environment: {{range .Config.Env}}
- {{.}}{{end}}
' $1
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment