title: Is the password of postgresql installed with docker automatically changed?
body: <p>I created the postgresql docker with the command below</p>
  <pre><code>docker run -d -p 5432:5432 --name postgres -e POSTGRES_PASSWORD=1234 -v pgdata:/var/lib/postgresql/data postgres
  </code></pre>
  <p>But after some time, the following error occurs</p>
  <pre><code>[575] FATAL:  password authentication failed for user &quot;postgres&quot;
  [575] DETAIL:  Password does not match for user &quot;postgres&quot;.
  Connection matched pg_hba.conf line 95: &quot;host all all all md5&quot;
  </code></pre>
  <p>Run the command below and it will work again</p>
  <pre><code>docker exec postgres su - postgres -c &quot;psql -U postgres -d postgres -c \&quot;alter user postgres with password '1234';\&quot;&quot;
  </code></pre>
  <p>Can you tell me why this is happening?</p>