Skip to content

Accessing Local Container Variables In Template #17

Closed
@maxexcloo

Description

@maxexcloo

I've been looking though your examples but am fairly certain this use case isn't covered:
Is it possible to retrieve environmental variables from the running container?

For example, if I start the container with "docker run -e TEMP=hello ..." and then run docker-gen inside it, is it possible to echo out the value of TEMP without wastefully looping through every running container?

Thanks for your time, this project is seriously one of the neatest Docker tools I've found ;)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions