Issue with ElasticSearch 7.1X to be migration from RHEL7 to RHEL8 host

I am migrating Elasticsearch nodes on 7.1X from Aqulion 7 to Aqulion 8 hosts. But I am getting below error. I know solution provided on different other threads is given as below but this doesn't help us. So, please provide other details if someone has faced this same issue.

"If anyone might run into this as well, the problem was identified to be multiple mounts of the /sys/fs/cgroup folder. Done both in the build and execution phase, removing it from either resolves this issue!"


[0.001s][warning][os,container] Duplicate cpuset controllers detected. Picking /sys/fs/cgroup/cpuset, skipping /usr/share/Elasticsearch/data/docker/overlay2/d2423a7f9ac4e46ec2d069481b10def8db07a9b348a0783235dbebf9a6769330/merged/sys/fs/cgroup/cpuset.
[0.001s][warning][os,container] Duplicate cpuset controllers detected. Picking /sys/fs/cgroup/cpuset, skipping /usr/share/Elasticsearch/data/docker/overlay2/d2423a7f9ac4e46ec2d069481b10def8db07a9b348a0783235dbebf9a6769330/merged/sys/fs/cgroup/cpuset.
[0.001s][warning][os,container] Duplicate cpuset controllers detected. Picking /sys/fs/cgroup/cpuset, skipping /usr/share/Elasticsearch/data/docker/overlay2/d2423a7f9ac4e46ec2d069481b10def8db07a9b348a0783235dbebf9a6769330/merged/sys/fs/cgroup/cpuset.
[0.000s][warning][os,container] Duplicate cpuset controllers detected. Picking /sys/fs/cgroup/cpuset, skipping /usr/share/Elasticsearch/data/docker/overlay2/d2423a7f9ac4e46ec2d069481b10def8db07a9b348a0783235dbebf9a6769330/merged/sys/fs/cgroup/cpuset.
Error: Could not find or load main class [0.001s][warning][os,container]
Caused by: java.lang.ClassNotFoundException: [0/001s][warning][os,container]