Eliminar imagen de docker

[root@srv-01 usradmin]# docker images -a
REPOSITORY TAG IMAGE ID CREATED SIZE
hello-world latest feb5d9fea6a5 4 months ago 13.3kB
[root@srv-01 usradmin]# docker rmi hello-world
Untagged: hello-world:latest
Untagged: hello-world@sha256:975f4b14f326b05db86e16de00144f9c12257553bba9484fed41f9b6f2257800
Deleted: sha256:feb5d9fea6a5e9606aa995e879d862b825965ba48de054caab5ef356dc6b3412
Deleted: sha256:e07ee1baac5fae6a26f30cabfe54a36d3402f96afda318fe0a96cec4ca393359
[root@srv-01 usradmin]# docker images -a
REPOSITORY TAG IMAGE ID CREATED SIZ

Error de inicialización Postgresql por primera vez.

[root@srv-db01 usradmin]# systemctl start postgresql
Job for postgresql.service failed because the control process exited with error code.
See «systemctl status postgresql.service» and «journalctl -xe» for details.

Se verifica como indica el mensaje:

[root@srv-db01 usradmin]# journalctl -xe

░░ A start job for unit postgresql.service has begun execution.
░░
░░ The job identifier is 2131.
ene 22 13:46:28 srv-db01 postgresql-check-db-dir[28975]: Directory «/var/lib/pgsql/data» is missing or empty.
ene 22 13:46:28 srv-db01 audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 subj=kernel msg=’unit=postgresql comm=»systemd» exe=»/usr/lib/system>
ene 22 13:46:28 srv-db01 postgresql-check-db-dir[28975]: Use «/usr/bin/postgresql-setup –initdb»

Se ejecuta el comando inidcado:
[root@srv-db01 usradmin]# /usr/bin/postgresql-setup –initdb

  • Initializing database in ‘/var/lib/pgsql/data’
  • Initialized, logs are in /var/lib/pgsql/initdb_postgresql.log
    [root@srv-db01 usradmin]# systemctl start postgresql