@@ -103,8 +103,10 @@ NOTE: `Job type extensions are not supported at the moment`.
103103 - [ Manual Execution] ( #manual-execution )
104104 - [ As a Windows Service] ( #as-a-windows-service )
105105 - [ As a Docker Container] ( #as-a-docker-container )
106- - [ Debugging creation] ( #debugging-creation )
107- - [ Production creation] ( #production-creation )
106+ - [ Available Docker Versions] ( #available-docker-versions )
107+ - [ Debug Creation] ( #debug-creation )
108+ - [ Production Environment] ( #production-environment )
109+ - [ Production Environment with Minimum Privileges] ( #production-environment-with-minimum-privileges )
108110 - [ Parameter Description] ( #parameter-description )
109111- [ Contributing] ( #contributing )
110112- [ Special Thanks] ( #special-thanks )
@@ -725,23 +727,43 @@ Available Docker registries:
725727- < https://github.com/neatFactory/JobAgent/pkgs/container/jobagent >
726728> Visit < https://hub.docker.com/r/aicrosoft/jobagent > to get the latest Docker image.
727729
728- ### Debugging creation
730+
731+ ### Available Docker Versions
732+ | Version | Type | Description |
733+ | :------ | :-------------- | :-------------------------------------------------- |
734+ | 1.2.3.4 | Standard | Root privileges + No shell series |
735+ | latest | Latest Standard | Root privileges + No shell, latest |
736+ | secure | Secure | Minimum privileges + No shell, latest |
737+ | debug | Debug | Root privileges + Shell + JobSamples plugin, latest |
738+
739+ ### Debug Creation
729740``` shell
730741# You can enter the container to perform operations
731742sudo docker run -d \
732743 --name jobagent-de \
733744 aicrosoft/jobagent:debug
734- # ## The DEBUG version of the image already has the JobSamples plugin.
745+ # # The DEBUG version image already includes the JobSamples plugin.
746+ ```
747+
748+ ### Production Environment
749+ ``` shell
750+ # # Create a container.
751+ sudo docker run -d \
752+ --name jobagent \
753+ -v /apps/ja/logs:/app/logs:rw \
754+ -v /apps/ja/plugins:/app/Plugins:rw \
755+ -v /apps/ja/states:/app/states:rw \
756+ aicrosoft/jobagent:latest
735757```
736758
737- ### Production creation
759+ ### Production Environment with Minimum Privileges
738760``` shell
739- # # Pre-create Empty Directories on the Host Machine and Assign Permissions
761+ # # Pre-create empty directories on the host machine and assign permissions
740762sudo mkdir -p /apps/ja/logs /apps/ja/plugins /apps/ja/states
741763sudo chmod -R 777 /apps/ja
742764sudo chown -R 65532:65532 /apps/ja
743765
744- # # When creating the container, the plugin directory is empty in the non-DEBUG version .
766+ # # Create a container.
745767sudo docker run -d \
746768 --name jobagent \
747769 -v /apps/ja/logs:/app/logs:rw \
0 commit comments