作为设置 PostgreSQL DR 的一部分,我正在尝试将 barman 设置和部署为 docker 容器。
我注意到,当我使用 2ndQuadrant Public APT 存储库并安装 barman 时,我看到安装了 barman 2.6-1 而不是 2.11。
下面是我为了分享而精简的 Dockerfile 片段。
# Dockerfile
# Barman
FROM debian:buster-slim
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
apt-utils \
# ca-certificates \
curl \
cron \
&& apt-get update \
&& curl https://dl.2ndquadrant.com/default/release/get/deb | bash \
&& apt-get update \
&& apt-get install -y --no-install-recommends barman \
&& rm -rf /var/lib/apt/lists/*
...
...
当我进行构建时,我看到了这个,
Selecting previously unselected package barman.
Preparing to unpack .../9-barman_2.6-1_all.deb ...
Unpacking barman (2.6-1) ...
Setting up libexpat1:amd64 (2.2.6-2+deb10u1) ...
Setting up mime-support (3.62) ...
Setting up libsqlite3-0:amd64 (3.27.2-3) ...
Setting up libpq5:amd64 (11.7-0+deb10u1) ...
Setting up readline-common (7.0-5) ...
Setting up libreadline7:amd64 (7.0-5) ...
Setting up libpopt0:amd64 (1.16-12) ...
Setting up libpython2.7-stdlib:amd64 (2.7.16-2+deb10u1) ...
Setting up rsync (3.1.3-6) ...
invoke-rc.d: could not determine current runlevel
invoke-rc.d: policy-rc.d denied execution of restart.
Setting up python2.7 (2.7.16-2+deb10u1) ...
Setting up libpython2-stdlib:amd64 (2.7.16-1) ...
Setting up python2 (2.7.16-1) ...
Setting up libpython-stdlib:amd64 (2.7.16-1) ...
Setting up python (2.7.16-1) ...
Setting up python-argh (0.26.2-1) ...
Setting up python-argcomplete (1.8.1-1) ...
Setting up python-six (1.12.0-1) ...
Setting up python-psycopg2 (2.7.7-1) ...
Setting up python-dateutil (2.7.3-3) ...
Setting up barman (2.6-1) ...
Processing triggers for libc-bin (2.28-10) ...
...
...
关于我在这里做错了什么或者apt repo没有更新的任何指示?
谢谢穆图