mirror of https://github.com/docker/docs.git
Update screenshot to 3.2 (#10100)
This commit is contained in:
parent
1ad123df72
commit
cdac7ade9d
|
@ -10,46 +10,44 @@ keywords: ucp, swarm, kubernetes, application, app package
|
|||
|
||||
Docker Enterprise Edition 2.1 introduces application packages in Docker. With application packages, you can add metadata and settings to an existing Compose file. This gives operators more context about applications they deploy and manage.
|
||||
|
||||
An application package can have one of these formats:
|
||||
Application packages can present in one of two different formats, **Directory** or **Single-file**:
|
||||
|
||||
- **Directory format**: Defined by metadata.yml, a docker-compose.yml, and a settings.yml files inside a `my-app.dockerapp` folder. This is also called the folder format.
|
||||
- **Single-file format**: Defined by metadata.yml, docker-compose.yml, and settings.yml concatenated in that order and separated by `---\n` in a single file named named `my-app.dockerapp`.
|
||||
- **Directory**: Defined by metadata.yml, a docker-compose.yml, and a settings.yml files inside a `my-app.dockerapp` folder. This is also called the folder format.
|
||||
- **Single-file**: Defined by metadata.yml, docker-compose.yml, and settings.yml concatenated in that order and separated by `---\n` in a single file named named `my-app.dockerapp`.
|
||||
|
||||
Once an application package has been deployed, you manipulate and manage it as you would any stack.
|
||||
|
||||
## Creating a stack in the UCP web interface
|
||||
|
||||
To create a stack in the UCP web interface, follow these steps:
|
||||
1. Access the UCP web interface.
|
||||
2. From the left menu, select **Shared Resources** > **Stacks**.
|
||||
|
||||
1. Go to the UCP web interface.
|
||||
2. In the lefthand menu, first select **Shared Resources**, then **Stacks**.
|
||||

|
||||
|
||||

|
||||
|
||||
3. Select **Create Stack** to display **1. Configure Application** in the stack creation dialog.
|
||||
3. Click **Create Stack** to open the **Create Application** window. The **1. Configure Application** section will become active.
|
||||
|
||||

|
||||
|
||||
4. Enter a name for the stack in the **Name** field.
|
||||
5. Select either **Swarm Services** or **Kubernetes Workloads** for the orchestrator mode. If you select Kubernetes, also select a namespace in the **Namespace** drop-down list.
|
||||
5. Click to indicate the **Orchestrator Mode**, either **Swarm Services** or **Kubernetes Workloads**. Note that if you select Kubernetes Workloads, the **Namespace** drop-down list will display, from which you must select one of the namespaces offered.
|
||||
|
||||

|
||||
|
||||
6. Select either **Compose File** or **App Package** for the **Application File Mode**.
|
||||
7. Select **Next**.
|
||||
8. If you selected Compose file, enter or upload your `docker-compose.yml` in **2. Add Application File**.
|
||||
6. Click to indicate the **Application File Mode**, either **Compose File** or **App Package**.
|
||||
7. Click **Next** to open the **2. Add Application File** section.
|
||||
8. Add the application file, according to the Application File Mode selected in section 1.
|
||||
- **Compose File:** Enter or upload the docker-compose.yml file.
|
||||
- **App Package:** Enter or upload the application package in the single-file format.
|
||||
|
||||

|
||||
|
||||
or if you selected **App Package**, enter or upload the application package in the single-file format.
|
||||
|
||||

|
||||
|
||||
9. Select **Create**.
|
||||
|
||||
## Single-file format example
|
||||
|
||||
Here is an example of a single-file application package:
|
||||
The following file is an example of a single-file application package.
|
||||
|
||||
```
|
||||
version: 0.1.0
|
||||
|
|
Binary file not shown.
After Width: | Height: | Size: 170 KiB |
Loading…
Reference in New Issue