# JAR-RUNTIME-Docker **Repository Path**: TPC_GrownDragon/JAR-RUNTIME-Docker ## Basic Information - **Project Name**: JAR-RUNTIME-Docker - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: cst/master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2019-01-31 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README 基于 Windows 的 JAR 运行环境容器映像 ==================================== ## 运行环境需求 - Docker 宿主操作系统:Windows 10 1809 / Windows Server 2019 - Docker CE 2+ / Docker EE 18.09+ - Docker 操作系统基础映像:Nano Server 1809 / Core Server 1809 ## 使用说明 使用 `Git` 工具将本存储库最新内容克隆到容器服务器,并使用 `powershell`(需管理员权限)逐一完成下步骤: - 生成映像 运行脚本 'build.ps1' 来生成映像。 * 语法 ```ps1 .\build.ps1 -Image -Tag ``` * 参数说明 **Image** 指定 JDK 基础映像的名称。 **Tag** 指定 JDK 基础映像的标签。 - 创建容器 运行脚本 `run.ps1` 来创建并启动容器。 * 语法 ```ps1 .\run.ps1 -ImageName -AppFolder [-ContainerName -Port -AutoStart] ``` * 参数说明 **ImageName** 指定映像名称,一般格式如:REPOSITORY:TAG,必填参数。即为上一节中生成的映像名称。 **ContainerName** 指定将要创建的容器名称。缺省为 Jar-Runtime-Service。 **AppFolder** 指定将要映射到容器中用于存储应用程序的本地文件夹路径。 **Port** 指定需侦听的网络端口。缺省为 8080。 **AutoStart** 指定容器是否随系统启动而自动启动。缺省为 false。 ## 个性化定制