How does a running Docker container modify the environment variables when executing the run command

  docker, question

How does a running Docker container modify the environment variables when executing the run command

Into the containerdocker exec -it containerId/Names /bin/bash, and then useexportJust modify it
export ENV='value'