Sign inSign up

iankoulski/envsubst

By iankoulski

•Updated over 8 years ago

Simple Docker Image with envsubst to use for expansion of environment variables in strings and files

Image
1

9.4K

iankoulski/envsubst repository overview

⁠envsubst

This is a simple Docker image that provides the envsubst executable which can be used when expanding environment variables in strings or files.

⁠Example 1 - string

docker container run --rm -it -e var=value iankoulski/envsubst sh -c "echo This container has \$var | envsubst"

output:

This container has value

⁠Example 2 - file

docker container run --rm -it -e var=value -v $(pwd):/wd iankoulski/envsubst sh -c "envsubst < /wd/file.txt > file-subst.txt" && cat file-subst.txt

output:

This container has value

Tag summary

Content type

Image

Digest

Size

5.4 MB

Last updated

over 8 years ago

docker pull iankoulski/envsubst