title: Specifying superuser PostgreSQL password for a Docker Container
body: <p>When running a PostgreSQL database in a Docker container, the <a href="https://hub.docker.com/_/postgres/" rel="noreferrer">documentation</a> for the official PostgreSQL Docker Image specifies that the administrator password should be set in an environmental variable like:</p>
  
  <pre><code>docker run --name some-postgres -e POSTGRES_PASSWORD=mysecretpassword -d postgres
  </code></pre>
  
  <p>For those that do not want to hard-code a plain-text password in their scripts, are there more secure options to consider? </p>