Docker difference postgres:12 from postgres:12-alpine

Viewed 8629

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?

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.

  • 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

Related