title: Passing Masked Jenkins Environment Variable to Docker container
body: <p>I have a password parameter set in my Jenkins build containing some information I want kept secret. The Jenkins build will create a Docker container which needs access to this parameter. Currently, my command looks like such:</p>
  
  <p><code>docker run -e PASSWORD=${PASSWORD} my_image my_command</code></p>
  
  <p>This works as I expected it to--the PASSWORD parameter I have set in my build is passed as an environment variable to the Docker container which can then utilize it. This is part of my console output:</p>
  
  <p><code>+ docker run -e PASSWORD=abc123efg my_image my_command</code></p>
  
  <p>The problem is that the raw password is shown in the output above. Is there any workaround or alternative solution I can use to pass the masked parameter to my container without exposing it in the output?</p>