How do I pass an emvironment variable to a docker.


Recommended Posts

I want to pass an environment variable to the Komga docker to limit it's memory usage:
 

JAVA_TOOL_OPTIONS=-Xmx2g

 

The relevant variable page is here for komga:
https://komga.org/installation/docker.html#user-group-identifiers

 

Sadly I haven't been able to understand how to use the following part to enter this and google is failing me.
image.png.dc78c66e309166b24735e5cc60d04d71.png

 

Unfortunately this part is TBD in the manual:
https://wiki.unraid.net/Manual/Docker_Management#Environment_Variables

 

image.png.df47e5cf1060c2576f998680225fba92.png

Edited by dodgypast
Link to comment
1 hour ago, dodgypast said:

I want to pass an environment variable to the Komga docker to limit it's memory usage:
 


JAVA_TOOL_OPTIONS=-Xmx2g

 

The relevant variable page is here for komga:
https://komga.org/installation/docker.html#user-group-identifiers

 

Sadly I haven't been able to understand how to use the following part to enter this and google is failing me.
image.png.dc78c66e309166b24735e5cc60d04d71.png

 

Unfortunately this part is TBD in the manual:
https://wiki.unraid.net/Manual/Docker_Management#Environment_Variables

 

image.png.df47e5cf1060c2576f998680225fba92.png

Name: whatever you want to call it.

Key: JAVA_TOOL_OPTIONS

Value: -Xmx2g

  • Like 2
Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.