Популярное

Музыка Кино и Анимация Автомобили Животные Спорт Путешествия Игры Юмор

Интересные видео

2025 Сериалы Трейлеры Новости Как сделать Видеоуроки Diy своими руками

Топ запросов

смотреть а4 schoolboy runaway турецкий сериал смотреть мультфильмы эдисон
dTub
Скачать

How to Install postgresql-client 17 on Docker Alpine Using apk

Автор: vlogommentary

Загружено: 2025-12-28

Просмотров: 5

Описание:

Learn how to properly install PostgreSQL client version 17 on an Alpine-based Docker image using apk repositories and handle common installation errors.
---
This video is based on the question https://stackoverflow.com/q/79346057/ asked by the user 'SexyMF' ( https://stackoverflow.com/u/936651/ ) and on the answer https://stackoverflow.com/a/79348519/ provided by the user 'Xu Ouyang' ( https://stackoverflow.com/u/21353113/ ) at 'Stack Overflow' website. Thanks to these great users and Stackexchange community for their contributions.

Visit these links for original content and any more details, such as alternate solutions, latest updates/developments on topic, comments, revision history etc. For example, the original title of the Question was: how to install postgresql-client 17 on docker alpine using apk

Also, Content (except music) licensed under CC BY-SA https://meta.stackexchange.com/help/l...
The original Question post is licensed under the 'CC BY-SA 4.0' ( https://creativecommons.org/licenses/... ) license, and the original Answer post is licensed under the 'CC BY-SA 4.0' ( https://creativecommons.org/licenses/... ) license.

If anything seems off to you, please feel free to drop me a comment under this video.
---
Introduction

When working with Docker images based on Alpine Linux, installing specific versions of packages like postgresql-client can be challenging due to package naming conventions and repository support. This guide addresses how to install postgresql-client version 17 on the mcr.microsoft.com/azure-cli:2.9.1 image, which is Alpine-based.

The Problem

Running the following commands in your Dockerfile:

[[See Video to Reveal this Text or Code Snippet]]

results in an error:

[[See Video to Reveal this Text or Code Snippet]]

This happens because the postgresql-client17 package is not available in the default Alpine repositories configured in the image.

Why the Error Occurs

The Alpine version in the base image may not have the desired PostgreSQL client version in its stable repository.

Package naming for PostgreSQL clients on Alpine often follows postgresql17-client rather than postgresql-client17.

Required packages may reside in the Alpine edge (testing) repository, not enabled by default.

The Solution

Step 1: Use the Edge Main Repository

Add the Alpine edge main repository to your APK repositories to access newer or testing packages such as postgresql17-client.

[[See Video to Reveal this Text or Code Snippet]]

Step 2: Update and Upgrade

Run update and upgrade with the --allow-untrusted flag because edge packages may not have verified signatures.

[[See Video to Reveal this Text or Code Snippet]]

Step 3: Install the Correct Package

Install the PostgreSQL 17 client using the correct package name postgresql17-client:

[[See Video to Reveal this Text or Code Snippet]]

Complete Dockerfile Example

[[See Video to Reveal this Text or Code Snippet]]

Summary

Use postgresql17-client instead of postgresql-client17.

Enable Alpine's edge main repository to access the latest package versions.

Use --allow-untrusted when working with edge/testing packages.

With these changes, the PostgreSQL 17 client should install successfully in the Alpine-based Docker image.

How to Install postgresql-client 17 on Docker Alpine Using apk

Поделиться в:

Доступные форматы для скачивания:

Скачать видео mp4

  • Информация по загрузке:

Скачать аудио mp3

Похожие видео

Код работает в 100 раз медленнее из-за ложного разделения ресурсов.

Код работает в 100 раз медленнее из-за ложного разделения ресурсов.

I Read Honey's Source Code

I Read Honey's Source Code

Wyjaśniamy o co chodzi z Grenlandią. Czy naprawdę może wybuchnąć wojna USA-Dania?

Wyjaśniamy o co chodzi z Grenlandią. Czy naprawdę może wybuchnąć wojna USA-Dania?

Компьютер сгорел после перепада напряжения, другой блок не помог! 🔥🤬 #HappyPC

Компьютер сгорел после перепада напряжения, другой блок не помог! 🔥🤬 #HappyPC

Rust, ProtoBuf and FlatBuffers! 🏳️‍🌈 | 07122025 |

Rust, ProtoBuf and FlatBuffers! 🏳️‍🌈 | 07122025 |

Mrozu feat. Julia Pietrucha - Anioły (Pojedynek - official promo video)

Mrozu feat. Julia Pietrucha - Anioły (Pojedynek - official promo video)

Microsoft begs for mercy

Microsoft begs for mercy

CEP - Szczegóły najnowszego przemówienia Władimira Putina

CEP - Szczegóły najnowszego przemówienia Władimira Putina

How to Use Indexes Effectively in OrientDB for Embedded and Linked Document Queries

How to Use Indexes Effectively in OrientDB for Embedded and Linked Document Queries

Модернизируйте Mac Mini M4 самостоятельно, сделайте его быстрее и мощнее!

Модернизируйте Mac Mini M4 самостоятельно, сделайте его быстрее и мощнее!

🔴 URODZINY RMF - DZIEŃ 2.: konkursy, nagrody, gwiazdy, świętowanie!

🔴 URODZINY RMF - DZIEŃ 2.: konkursy, nagrody, gwiazdy, świętowanie!

The Windows 11 Disaster That's Killing Microsoft

The Windows 11 Disaster That's Killing Microsoft

FERRAN ŁAMIE KOD, A YAMAL GASI ŚWIATŁO! CZY ONI JESZCZE KIEDYŚ PRZEGRAJĄ? | SKRÓT

FERRAN ŁAMIE KOD, A YAMAL GASI ŚWIATŁO! CZY ONI JESZCZE KIEDYŚ PRZEGRAJĄ? | SKRÓT

🔴 PORANNY RING 7:30 - RADOSŁAW PYFFEL, RYSZARD PIOTROWSKI

🔴 PORANNY RING 7:30 - RADOSŁAW PYFFEL, RYSZARD PIOTROWSKI

Brain rot in software development...

Brain rot in software development...

🔴 Let’s build a Scheduling SaaS with NEXT.JS 16! (Sanity, Clerk, CodeRabbit, Google Calendar & Meet)

🔴 Let’s build a Scheduling SaaS with NEXT.JS 16! (Sanity, Clerk, CodeRabbit, Google Calendar & Meet)

Claude Canvas превращает код Claude в визуальное терминальное приложение!

Claude Canvas превращает код Claude в визуальное терминальное приложение!

Widzew Łódź - Paksi FC: transmisja meczu

Widzew Łódź - Paksi FC: transmisja meczu

#679 Chcą powstrzymać Trumpa. Iran-państwa przeciw atakom, odezwa Rodriguez, Rada Pokoju Strefy

#679 Chcą powstrzymać Trumpa. Iran-państwa przeciw atakom, odezwa Rodriguez, Rada Pokoju Strefy

Bill Gates STUNNED as Windows 12 Faces MASSIVE Backlash Before Launch!

Bill Gates STUNNED as Windows 12 Faces MASSIVE Backlash Before Launch!

© 2025 dtub. Все права защищены.



  • Контакты
  • О нас
  • Политика конфиденциальности



Контакты для правообладателей: infodtube@gmail.com