Skip to content
Discussion options

You must be logged in to vote

I'm using docker, running keytool from the shell connected via portainer

I don't know about portainer, but in the instructions in the documentation, the keytool invocation is supposed to be done (once) outside of any Docker container, on your own system. There you should have no issue generating the keystore.jks file.

Once the file exists, it can then be mounted inside the Docker containe using a volume:

    volumes:
      - ./keystore.jks:/keystore.jks

The file is then accessible to the JVM running inside the container, and you can point the application (via --server.ssl.key-store=) to the location inside the container where it can find it.

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@pcdavid
Comment options

pcdavid Jul 30, 2026
Collaborator

Answer selected by Dob4115
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants