Docker restart gpio reclaiming

Thanks for your reply. I took some time reading about docker entrypoint but I had trouble matching this mechanism to my challenge. Then I found a another post of yours, Running openHAB 2 in Docker, pointing to Docker. This page has a topic “Executing shell scripts before openHAB is started”. Exactly what I needed.
Thanks and regards