Works on rhel7 but not rhel9

Hi,

We have a project that I’m migrating from rhel7 to rhel9. And the docker-compose solr block is not working. Specifically, I have a volume that I’m trying to mount into the container that doesn’t seem to show up.

    volumes:
      - data:/opt/solr/server/solr/conan
      # This script performs a "sed" command to define the spell check field
      - ./solr/config/init.sh:/docker-entrypoint-initdb.d/init.sh
    entrypoint:
      - docker-entrypoint.sh
      - solr-precreate
      - conan

The line after the “sed” doesn’t show up in the rhel 9 container but does in the rhel 7 The docker and docker-compose versions are different on the two machines.

Column 1 Column 2 Column 3 Column 4
docker version docker-compose version
rhel 7 version 26.1.4, build 5650f9b version 1.25.0, build 0a186604
rhel 9 version 27.3.1, build ce12230 version 1.23.2, build 1110ad01

Do I need to back down to 26.1.4 on the rhel 9 machine or is there an issue with my docker-compose file?

Thanks,
Tino

The mount should not depend on the host OS, but none of your compose versions are supported since July 2023.

You should always regularly check the documentation of the software you are using. At least more frequently then a year :slight_smile:

That is on me :sweat_smile: It was a permissions issue and the remedy was changing the umask to 0002.