title: Docker container exits immediately after running or restarting PostgreSQL image
body: <p>I am begginer with docker, and I stuck in place due to container restarting problem.
  The problem occures when I try to restart an existing exited container, or create new container (after deleting old one) running:</p>
  
  <pre><code>docker run -d --name mempostgres \
      -v "/home/lukasz/lc_pg_data:/var/lib/pgsql/data:Z" \
      -e POSTGRES_USER=postgres \
      -e POSTGRES_PASSWORD=password \
      -e POSTGRES_DB=dbName \
      -p 5432:5432 \
      fedora/postgresql
  </code></pre>
  
  <p>My container always exits immediately with status "Exited(1)"</p>
  
  <p>Inside the logs of my container i have:
  <a href="https://i.stack.imgur.com/MAVMv.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/MAVMv.jpg" alt="enter image description here"></a></p>
  
  <p>However I don't have any PostgreSQL server running at this moment.</p>