title: Docker set environment variable when restarting container
body: <p>I have a running container and i need to set an environment variable (in this case i want to . There is any way to restart and set the environment variable</p>
  
  <p>I already tried something like that:</p>
  
  <pre><code> docker restart CONTAINER_ID -e EXO_JVM_SIZE_MAX="7gb"
  
   docker -e EXO_JVM_SIZE_MAX="7gb" restart CONTAINER_ID
  </code></pre>
  
  <p>So is there any way to set a variable without losing the container?</p>
  
  <p>I'm new at docker and i need some help</p>
  
  <p>thanks in advance</p>