# Default opam version in the docker image

**URL:** https://discuss.ocaml.org/t/default-opam-version-in-the-docker-image/15069
**Category:** Ecosystem
**Tags:** opam, docker
**Created:** [August 2, 2024, 8:43am UTC](https://discuss.ocaml.org/t/default-opam-version-in-the-docker-image/15069 "2024-08-02T08:43:41Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![virgile](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ocaml.org/virgile/32/2854_2.png) [@virgile](https://discuss.ocaml.org/u/virgile)
#### Post date: [August 2, 2024, 8:43am UTC](https://discuss.ocaml.org/t/default-opam-version-in-the-docker-image/15069/1 "2024-08-02T08:43:41Z")

</div>

Unless I’m mistaken, in the docker images from `ocaml/opam`, `opam` defaults to 2.0. It is possible to use `opam-2.1` and even `opam-2.2`, but is there a reason why 2.1, released 3 years ago, is not the default at this point?

---

<div class="post-metadata">

### Author: ![shonfeder](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ocaml.org/shonfeder/32/424_2.png) [@shonfeder](https://discuss.ocaml.org/u/shonfeder)
#### Post date: [August 4, 2024, 11:51pm UTC](https://discuss.ocaml.org/t/default-opam-version-in-the-docker-image/15069/2 "2024-08-04T23:51:06Z")

</div>

AFAIU, the reason we are still defaulting to opam 2.0 is as follows:

- some supported platforms still use opam 2.0 in their distro
- opam can automatically upgrade its data formats from 2.0 to 2.1 and 2.2, but cannot go back down

Once the last LTS version platform that uses opam 2.0 drops out, well drop 2.0 from the images, and 2.1 will be the default.

Let me now if you have any other questions!
