Is there any way to set default computing env for all future container?
Use case:
I have build infrastructure and want to set machine-specific env for all containers that will be started on machine.
Share and learn in the Docker community.
Is there any way to set default computing env for all future container?
Use case:
I have build infrastructure and want to set machine-specific env for all containers that will be started on machine.
Try an environment variable file
–env-file /path/to/envfiles.
Use the -e
, --env
, and --env-file
flags to set simple (non-array) environment variables in the container you’re running, or overwrite variables that are defined in the Dockerfile of the image you’re running.
Don’t knew about build-arg trick. Thanks.
But, unfortunately, I don’t have possibilities to rebuild all images. Also, they can be external.
And I really want to do such things on the docker engine layer. And don’t want to any affect on the run/start container usage for users.