# ElasticSearch v7 docker container not starting on RHEL 8.8

**URL:** <https://discuss.elastic.co/t/elasticsearch-v7-docker-container-not-starting-on-rhel-8-8/341913>\
**Category:** Elasticsearch\
**Tags:** docker\
**Created:** [August 29, 2023, 4:41pm UTC](https://discuss.elastic.co/t/elasticsearch-v7-docker-container-not-starting-on-rhel-8-8/341913 "2023-08-29T16:41:25Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![hakakuma](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/hakakuma/32/124212_2.png) [@hakakuma](https://discuss.elastic.co/u/hakakuma)\
**Post date:** [August 29, 2023, 4:41pm UTC](https://discuss.elastic.co/t/elasticsearch-v7-docker-container-not-starting-on-rhel-8-8/341913/1 "2023-08-29T16:41:25Z")

</div>

When we try to run elasticsearch v7.17.0 or v7.17.12, we are facing an error to start the container. It fails with "2023-08-29T12:34:54.499254418+05:30 stderr F chroot: cannot change root directory to '/': Operation not permitted". One change we know of rhel 8.8 is, it is using podman 4.

This was working fine on RHEL v8.4 which was internally using podman3.

When we tried to run the latest elasticsearch container v8.9.1 on RHEL v8.8, this problem is not coming.

Is anyone facing same problem? Or anyone knows any solution for fixing this on v7 elasticsearch containers?

---

<div class="post-metadata">

**Author:** ![jreyes25](https://avatars.discourse-cdn.com/v4/letter/j/898d66/32.png) [@jreyes25](https://discuss.elastic.co/u/jreyes25)\
**Post date:** [September 12, 2023, 1:31pm UTC](https://discuss.elastic.co/t/elasticsearch-v7-docker-container-not-starting-on-rhel-8-8/341913/2 "2023-09-12T13:31:07Z")

</div>

Hello,

How are you running the container? Through CLI or podman-compose.yml file? And are you mounting or binding a volume for the elasticsearch.yml file ?

If you are mounting or binding a volume for the elasticsearch.yml file, it could be that selinux is blocking the file from being read. I ran into that issue and it was selinux that caused the problem.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [October 10, 2023, 1:31pm UTC](https://discuss.elastic.co/t/elasticsearch-v7-docker-container-not-starting-on-rhel-8-8/341913/3 "2023-10-10T13:31:52Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
