使用 podman 3.1.2(以前的 3.0.1)构建 PostgreSQL 映像会导致
sd-bus 调用:连接被对等方重置
从 Podman 执行示例时也会发生这种情况http://docs.podman.io/en/latest/Introduction.html
podman build -t nginx https://git.io/Jf8ol
下面的示例应该构建一个 PostgreSQL 服务器。
我已经在 Ubuntu 20.04.2 LTS(在 Raspi 4 上运行)上安装了 podman 包
apt install podman
podman -v
-> podman version 3.0.1
尝试构建 PostgreSQL 结果是:
podman build -t djarjo/postgresql -f postgresql_deDE .
STEP 1: FROM postgres:13.3
STEP 2: RUN localedef -i de_DE -c -f UTF-8 -A /usr/share/locale/locale.alias de_DE.UTF-8
error running container: error creating container for [/bin/sh -c localedef -i de_DE -c -f UTF-8 -A /usr/share/locale/locale.alias de_DE.UTF-8]: sd-bus call: Connection reset by peer
: exit status 1
Error: error building at STEP "RUN localedef -i de_DE -c -f UTF-8 -A /usr/share/locale/locale.alias de_DE.UTF-8": error while running runtime: exit status 1
构建文件是:
cat postgresql_deDE
FROM postgres:13.3
RUN localedef -i de_DE -c -f UTF-8 -A /usr/share/locale/locale.alias de_DE.UTF-8
ENV LANG de_DE.utf8