I have downloaded the official docker jenkins image and installed Git+GitHub plugin for Jenkins.
In the credentials menu I add the public key of my regular GitHub user (did not generate new) and in the build configuration I specify the git url. Unfortunately, I get a Permission denied (public key) from GitHub.
So I tried the HTTPS url instead with my GitHub login to ensure there was nothing wrong with the connection to GitHub. That way it is working, but I cannot understand if I need to setup the SSH keys in the container or not, is that even possible since the container only contains Jenkins itself?