I noticed a different behavior of postgres docker containers depending on whether the image was build with docker build
(normal Docker) or with docker buildx build
(Moby BuildKit).
# syntax=docker/dockerfile:1
FROM --platform=$BUILDPLATFORM postgres:13.4-alpine
ARG TARGETPLATFORM
ARG BUILDPLATFORM