This could be painful, indeed Usually, when a package is updated, it's updated with all Alpine distro versions that it's compatible to. For example, postgresql-client was bumped to In case this was enough, the old version could be installed from the desired repository, as long as it lasts, using:.
However, since Luckily, the postgres official images has version tags, and you can find the desired Alpine image for In tougher cases, where the Alpine package version is updated, and couldn't be found in other images, the only resort may be building from source. But how to get these into your image? This works for me:. Stack Overflow for Teams — Collaborate and share knowledge with a private group.
Create a free Team What is Teams? Collectives on Stack Overflow. Sending build context to Docker daemon 2. Thanks for checking, I will investigate if we there are other ways to do this. FROM alpine I think this resolves the issue by itself : Can you provide a URL as source? I'd like to read further into this feature.
Try avoid some of the issues related to apk packages whilst maintaining semi-strict version pinning. JanJakes mentioned this issue Jun 4, Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment. Linked pull requests. You signed in with another tab or window. Alternately, you could simply set a minimum package version instead of an exact version.
We don't at the moment have resources to store all built packages indefinitely in our infra. Thus we currently keep only the latest for each stable branch, and has always been like that. There has been discussion of keep all packages tagged as Alpine in the future.
However, this is still "in-progress". The complete Alpine Linux organisations repositories can be found on this self hosted GitLab instance. In this example, we will install the Django version 2. We will use a double equation sign to specify the version. We will also use the --user option in order to prevent other system users package downgrade.
This will only affect the current user. From the screenshot, we see that the currently installed recent Django version is uninstalled automatically.
0コメント