Evening all, can someone please explain the practical difference between using the environmental variables in a pod file versus the command and args. When would you use one or the other? Don’t both of these approaches allow passing arguments to the application inside the container?
There is a difference between both
-env: is used to provide default values for you desired environment. Then, the dockerizes app can access them
-arg: those values are not available after building the image. Then, the running container can’t access those values.
understood, thank you @Mohamed Ayman