Score:1

Docker run environment variable regex / wildcard

cn flag

On my host machine I run the following:

export test_1="Hello"
export test_2="There"

Starting Docker container:

docker run -it -e test* centos 

The env variables are not available in the container. Is what I'm trying to achieve possible?

Score:1
de flag

You can try to filter your environment variables like

env | grep ^test > env.list

and then use env-file docker option to pass all variables at once:

docker run -it --env-file env.list centos
SimpleNiko avatar
cn flag
That's what I ended up doing, gets the job done. thanks!
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.