2023-02-07 12:31:57 UTC
433 MB
/home/postgres/pgdata/backup
LANGC.UTF-8
LC_ALLC.UTF-8
PAGER PATH/usr/lib/postgresql/13/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
PGBACKREST_CONFIG/home/postgres/pgdata/backup/pgbackrest.conf
PGBACKREST_STANZApoddb
PGDATA/home/postgres/pgdata/data
PGLOG/home/postgres/pg_log
PGROOT/home/postgres
PGSOCKET/home/postgres/pgdata
[#000] sha256:98ca765ef1ae8f58126391ba15388993cfdcdcce4445a3b72e8a614c829706ed - 99.99% (433 MB)
[#001] sha256:f1f2bd61188c6c3c3301ea4b586ec5bb7b6979306c7adb9b0afe04f88ad3778d - 0.0% (1.25 KB)
[#002] sha256:cfc1c885ddb513fc124754afcf42c8b7bb5fbd8599be8994f2c2e9402e386b64 - 0.0% (119 Bytes)
[#003] sha256:5d03c73f456fe6e728f38719ea4b1968aa8503dd69a342055ae9f7919e88839b - 0.0% (984 Bytes)
[#004] sha256:36ee320b6aa95c643345c1baf4b657381a6c8bc27cc8d15233e9045624ed9c22 - 0.01% (24.9 KB)
[#005] sha256:4f4fb700ef54461cfa02571ae0db9a0dc1e0cdb5577484a6d75e68dc38e8acc1 - 0.0% (32 Bytes)
[#006] sha256:4d0afee8db2caf3648890c43a8221016a7f4f7611775faedf7c67b823cd295b8 - 0.0% (329 Bytes)
[#007] sha256:7f657dc3385c4ba15fcaeec2574b76f3730a73f41b9d04ddd1a9ae0c298259b9 - 0.0% (153 Bytes)
[#008] sha256:ca2e1d5df4e00b33c274a250930b1ec0f820e50e14ef7cb4f92e7b48b55a6516 - 0.0% (318 Bytes)
[#009] sha256:2b7c03cd6f2d28a2cc5719c18ed81329b91f1266429d734542425b478cc004c8 - 0.0% (331 Bytes)
[#010] sha256:4f4fb700ef54461cfa02571ae0db9a0dc1e0cdb5577484a6d75e68dc38e8acc1 - 0.0% (32 Bytes)
[#011] sha256:2fd6a68a5af786218ca5bd123b0320524891ebca0918aa1047d43b44c18041e3 - 0.0% (132 Bytes)
[#012] sha256:332f129ae1894cfe75f228043cbed8f8b171136202007cb6cc20ddb07b220ac2 - 0.0% (127 Bytes)
[#013] sha256:4f4fb700ef54461cfa02571ae0db9a0dc1e0cdb5577484a6d75e68dc38e8acc1 - 0.0% (32 Bytes)
COPY / / # buildkit
2023-02-07 12:31:54 UTC (buildkit.dockerfile.v0)ARG PG_MAJOR
2023-02-07 12:31:54 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["/docker-entrypoint.sh"]
2023-02-07 12:31:54 UTC (buildkit.dockerfile.v0)CMD ["postgres"]
2023-02-07 12:31:54 UTC (buildkit.dockerfile.v0)COPY timescaledb_entrypoint.sh / # buildkit
2023-02-07 12:31:54 UTC (buildkit.dockerfile.v0)RUN |1 PG_MAJOR=13 /bin/sh -c ln -s /timescaledb_entrypoint.sh /patroni_entrypoint.sh # buildkit
2023-02-07 12:31:54 UTC (buildkit.dockerfile.v0)COPY pgbackrest_entrypoint.sh / # buildkit
2023-02-07 12:31:54 UTC (buildkit.dockerfile.v0)COPY scripts /scripts/ # buildkit
2023-02-07 12:31:54 UTC (buildkit.dockerfile.v0)ENV PGROOT=/home/postgres PGDATA=/home/postgres/pgdata/data PGLOG=/home/postgres/pg_log PGSOCKET=/home/postgres/pgdata BACKUPROOT=/home/postgres/pgdata/backup PGBACKREST_CONFIG=/home/postgres/pgdata/backup/pgbackrest.conf PGBACKREST_STANZA=poddb PATH=/usr/lib/postgresql/13/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin LC_ALL=C.UTF-8 LANG=C.UTF-8 PAGER=
2023-02-07 12:31:54 UTC (buildkit.dockerfile.v0)RUN |1 PG_MAJOR=13 /bin/sh -c usermod postgres --home "${PGROOT}" --move-home # buildkit
2023-02-07 12:31:55 UTC (buildkit.dockerfile.v0)RUN |1 PG_MAJOR=13 /bin/sh -c install -o postgres -g postgres -m 0750 -d "${PGROOT}" "${PGLOG}" "${PGDATA}" "${BACKUPROOT}" /etc/supervisor/conf.d /scripts /var/lib/postgresql # buildkit
2023-02-07 12:31:55 UTC (buildkit.dockerfile.v0)RUN |1 PG_MAJOR=13 /bin/sh -c rm /etc/pgbackrest.conf && ln -s "${PGBACKREST_CONFIG}" /etc/pgbackrest.conf # buildkit
2023-02-07 12:31:55 UTC (buildkit.dockerfile.v0)RUN |1 PG_MAJOR=13 /bin/sh -c for i in $(seq 0 7); do touch "${PGLOG}/postgresql-$i.log" "${PGLOG}/postgresql-$i.csv"; done # buildkit
2023-02-07 12:31:56 UTC (buildkit.dockerfile.v0)RUN |1 PG_MAJOR=13 /bin/sh -c chown postgres:postgres "${PGLOG}" "${PGROOT}" "${PGDATA}" /var/run/postgresql/ -R # buildkit
2023-02-07 12:31:56 UTC (buildkit.dockerfile.v0)RUN |1 PG_MAJOR=13 /bin/sh -c chown postgres:postgres /var/log/pgbackrest/ /var/lib/pgbackrest /var/spool/pgbackrest -R # buildkit
2023-02-07 12:31:56 UTC (buildkit.dockerfile.v0)RUN |1 PG_MAJOR=13 /bin/sh -c chmod 1777 /var/run/postgresql # buildkit
2023-02-07 12:31:57 UTC (buildkit.dockerfile.v0)RUN |1 PG_MAJOR=13 /bin/sh -c chmod 755 "${PGROOT}" # buildkit
2023-02-07 12:31:57 UTC (buildkit.dockerfile.v0)WORKDIR /home/postgres
2023-02-07 12:31:57 UTC (buildkit.dockerfile.v0)EXPOSE map[5432/tcp:{} 8008/tcp:{} 8081/tcp:{}]
2023-02-07 12:31:57 UTC (buildkit.dockerfile.v0)USER postgres
Please be careful as this will not just delete the reference but also the actual content!
For example when you have latest and v1.2.3 both pointing to the same image
the deletion of latest will also permanently remove v1.2.3.