if ($xmlType == 'edit'):
if ($DockerClient->doesContainerExist($templateName)): echo "\n"; endif;
else:?>
| Template: |
";
}?>
|
Templates are a quicker way to setting up Docker Containers on your Unraid server. There are two types of templates:
Default templates
When valid repositories are added to your Docker Repositories page, they will appear in a section on this drop down for you to choose (master categorized by author, then by application template).
After selecting a default template, the page will populate with new information about the application in the Description field, and will typically provide instructions for how to setup the container.
Select a default template when it is the first time you are configuring this application.
User-defined templates
Once you've added an application to your system through a Default template,
the settings you specified are saved to your USB flash device to make it easy to rebuild your applications in the event an upgrade were to fail or if another issue occurred.
To rebuild, simply select the previously loaded application from the User-defined list and all the settings for the container will appear populated from your previous setup.
Clicking create will redownload the necessary files for the application and should restore you to a working state.
To delete a User-defined template, select it from the list above and click the red X to the right of it.
|
>
| Name: |
|
>
Give the container a name or leave it as default.
|
| Overview: |
|
| Overview: |
|
A description for the application container. Supports basic HTML mark-up.
|
>
| Repository: |
|
>
The repository for the application on the Docker Registry. Format of authorname/appname.
Optionally you can add a : after appname and request a specific version for the container image.
|
| Categories: |
|
| Support Thread: |
|
Link to a support thread on Lime-Technology's forum.
|
| Project Page: |
|
Link to the project page (eg: www.plex.tv)
|
| Donation Text: |
|
Text to appear on Donation Links Within The Apps Tab
|
| Donation Link: |
|
Link to the donation page. If using donation's, both the image and link must be set
|
| Docker Hub URL: |
|
The path to the container's repository location on the Docker Hub.
|
| Template URL: |
|
This URL is used to keep the template updated.
|
| Icon URL: |
|
Link to the icon image for your application (only displayed on dashboard if Show Dashboard apps under Display Settings is set to Icons).
|
| WebUI: |
|
When you click on an application icon from the Docker Containers page, the WebUI option will link to the path in this field.
Use [IP] to identify the IP of your host and [PORT:####] replacing the #'s for your port.
|
| Extra Parameters: |
|
If you wish to append additional commands to your Docker container at run-time, you can specify them here.
For all possible Docker run-time commands, see here: https://docs.docker.com/reference/run/
|
| Post Arguments: |
|
If you wish to append additional arguments AFTER the container definition, you can specify them here.
The content of this field is container specific.
|
| CPU Pinning: |
|
Checking a CPU core(s) will limit the container to run on the selected cores only. Selecting no cores lets the container run on all available cores (default)
|
>
| Network Type: |
|
| Fixed IP address (optional): |
|
>
If the Bridge type is selected, the application’s network access will be restricted to only communicating on the ports specified in the port mappings section.
If the Host type is selected, the application will be given access to communicate using any port on the host that isn’t already mapped to another in-use application/service.
Generally speaking, it is recommended to leave this setting to its default value as specified per application template.
IMPORTANT NOTE: If adjusting port mappings, do not modify the settings for the Container port as only the Host port can be adjusted.
|
>
| Console shell command: |
|
>
| Privileged: |
|
>
For containers that require the use of host-device access directly or need full exposure to host capabilities, this option will need to be selected.
For more information, see this link: https://docs.docker.com/engine/reference/run/#runtime-privilege-and-linux-capabilities
|