Docker Community Forums

Share and learn in the Docker community.

Unset ENV variables inside container through child process

Hi,
I have passed env variables at the time of building docker image (in docker run command with --env flag) which is required at the build time only. How to remove these env variables after docker build is completed. I tried to unset those variables through a script which is being executed inside the docker container, but it did’t work for me.
Please help me out !!