Skip to content

Switch from docker hub to ghcr.io (github) #2704

@Diman0

Description

@Diman0

EDIT:
To switch to the images on ghcr.io.

  1. Stop the containers docker-compose down
  2. Create the file .env in the same folder as docker-compose.yml with the contents:
DOCKER_ORG=ghcr.io/mailu
  1. Start the containers. docker-compose up -d
  2. Check that the images from ghcr.io are used. docker-compose ps

❗ Mailu 2.0 has been released! ❗
It is recommend to switch to Mailu 2.0. Please read https://mailu.io/2.0/releases.html before making the switch.

old post:
https://blog.alexellis.io/docker-is-deleting-open-source-images/
https://news.ycombinator.com/item?id=35166317

Docker has decided to shutdown all 'Free Team organizations'. Mailu also makes use of this. So we have to move to a different registry for the production images. Ghcr.io (github) is already used for everything but the 1.9 images.

To use it, prefix the image path with ghcr.io. E.g.
Instead of docker pull mailu/admin:master
use: docker pull ghcr.io/mailu/admin:master
or for testing images: docker pull ghcr.io/mailu/admin:pr-2703

Tasks that must be done for switching:

  • Modify the CI.yml (github action) to only use ghcri.io. So modify the step for copying images from ghcr.io to docker hub.
  • Update setup (docker-compose.yml template) to use ghcri.io.
  • Update instructions in the documentation to use ghcr.io. At least the section describing how to pull PR images must be modified.

After the switch has been made, we have to decide if we remove all images from docker. This should give a wake up call to people who never visit the website.

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority/p0Critical bug without workaround / Must havetype/enhancementEnhances existing functionality

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions