Running gpt in docker container (Fedora)

Hi!
In the snap tool I can create xml with graph builder.
This graph I want to run in a docker container based on Fedora.

However, when I try to run (as a test) inside the Docker container:
gpt -h
I’m getting error:
java.io.FileNotFoundException /usr/local/snap/jre/jre/lib/ext/zipfs.jar (Too many open files)

Dockerfile:
FROM a_base_fedora_image
RUN microdnf wget python unzip java-1.8.0-openjdk &&
microdnf clean all

#install - find the download link from https://step.esa.int/main/download/snap-download/
RUN wget https://download.esa.int/step/snap/8.0/installers/esa-snap_sentinel_unix_8_0.sh -O esa-snap_sentinel.sh
RUN chmod +x esa-snap_sentinel.sh
RUN ./esa-snap_sentinel.sh -q

#Update all of the modules, deactivated - as it seems to hang forever when updates=0
#RUN snap --nosplash --nogui --modules --refresh --update-all

I know there is a similar example using Debian, which works - but I like to use Fedora.
I also tried to change the setting in conf file /etc/security/limits.conf, with no effect.

Check of java version inside container:
bash-5.0# java -version
openjdk version “1.8.0_275”
OpenJDK Runtime Environment (build 1.8.0_275-b01)
OpenJDK 64-Bit Server VM (build 25.275-b01, mixed mode)

Some suggestions?
BR
Bjørn

This helped me to solve my issue with too many open files (-:


the trick is to run the docker image like this:
docker run --ulimit nofile=5000:5000
Then I could run:
gpt -h
without error
BR
Bjørn
2 Likes