Bootstrap FreeKB - Docker - Define environment variables in Dockerfile using ENV
Docker - Define environment variables in Dockerfile using ENV

Updated:   |  Docker articles

This  assumes you have installed Docker on Linux and Docker is running.

The ENV option can be used to define environment variables in an image using a Dockerfile. In this example, the "foo" variable contains a value of "bar".

FROM jeremycanfield/hello-world:latest
ENV foo=bar

 




Did you find this article helpful?

If so, consider buying me a coffee over at Buy Me A Coffee



Comments


Add a Comment


Please enter 11b879 in the box below so that we can be sure you are a human.