These commands you must know when you using the PostgreSQL Image

    1. sudo systemctl start postgresql-11
    2. sudo systemctl stop postgresql-11
    3. sudo systemctl restart postgresql-11
    4. sudo systemctl status postgresql-11

    Different version of PostgreSQL have different service name,if you PostgreSQL version is not 11.x,please find the service name of PostgreSQL first by following command

    sudo systemctl list-unit-files