1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

postgres11.3コンテナでリポジトリ迷子になったので対策

Last updated at Posted at 2023-03-14

状況

ある日を境にpostgresコンテナがbuildエラーとなってしまった

原因

postgres11のリポジトリの場所が変更になったみたい。

対策

FROM postgres:11.3
+ RUN rm /etc/apt/sources.list.d/pgdg.list
+ RUN echo "deb http://archive.debian.org/debian stretch main contrib non-free" > /etc/apt/sources.list
+ RUN apt-get update && apt-get -y install apt-transport-https
+ RUN echo "deb [ signed-by=/usr/local/share/keyrings/postgres.gpg.asc ] https://apt-archive.postgresql.org/pub/repos/apt/ stretch-pgdg main 11" >/etc/apt/sources.list.d/pgdg.list
RUN apt-get update
RUN apt-get install python3 python3-pip  unzip -y
RUN pip3 install --upgrade pip
- RUN apt-get install pgadmin3 -y
+ RUN apt-get install pgadmin3 -y --allow-unauthenticated

結び

pgadmin3は推奨しません

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?