Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Docker difference postgres:12 from postgres:12-alpine

Docker hub contains several versions(tag) of Postgres db such as:

  • 12.3, 12, latest
  • 12.3-alpine, 12-alpine, alpine -...

What is diff between postgres version 12.3 and 12.3-alpine?

like image 978
Arch Avatar asked Jun 11 '20 20:06

Arch


People also ask

What is alpine version in Docker?

Alpine Linux is a Linux distribution built around musl libc and BusyBox. The image is only 5 MB in size and has access to a package repository that is much more complete than other BusyBox based images. This makes Alpine Linux a great image base for utilities and even production applications.

What is PostgreSQL alpine?

Alpine is a much smaller version of Linux, it results in a smaller container than the full postgres image. It is argued that because of its small size, alpine is also more secured. Although one disadvantage of alpine is that it contains a lot less functionality than a docker image running the full Linux OS.

Does Docker use alpine?

Docker provides you with the low sized (only 5 MB) Alpine Linux Image. The Alpine Linux Docker Image has advantages over the Ubuntu Image because of its relatively lower size and it provides almost all the functionalities that an Ubuntu Image can. In this article, we will see how to build an Alpine Linux Image.

What is PostgreSQL Docker?

Docker has shot up in popularity over the years. Postgres (a.k.a PostgreSQL) is an open-source, standards-compliant, and object-relational database been developed for more than 30 years now. This official feature matrix shows the wealth of features Postgres has.


2 Answers

Alpine is a much smaller version of Linux, it results in a smaller container than the full postgres image. It is argued that because of its small size, alpine is also more secured. Although one disadvantage of alpine is that it contains a lot less functionality than a docker image running the full Linux OS.

like image 79
Saturnin Pugnet Avatar answered Oct 19 '22 11:10

Saturnin Pugnet


  • postgres:12.3 is based on Debian :
  • postgres:12.3-alpine is based on Alpine

Mainly the image sizes and contents differ:

enter image description here

like image 34
Hakan Dilek Avatar answered Oct 19 '22 11:10

Hakan Dilek