# Step 5: Create a Service

You can use the DuploCloud Portal to create a native Docker service without leaving the DuploCloud interface.

*Estimated time to complete Step 5: 10 minutes.*

## Prerequisites

Before creating a Service, verify that you completed the tasks in the previous tutorial steps. Using the DuploCloud Portal, confirm that:

* An [Infrastructure and Plan](/docs/automation-platform/overview/quick-start/step-1-infrastructure.md) exist, both named **NONPROD**.
* A Tenant named [**dev01** has been created](/docs/automation-platform/overview/quick-start/step-2-tenant.md).
* An EC2 Host named [host01 has been created](/docs/automation-platform/overview/quick-start/quick-start-duplocloud-docker-services/step-4-create-ec2-host.md).

## Creating a Service with Native Docker

1. In the **Tenant** list box, select **dev01**.
2. Navigate to **Docker** -> **Services.**
3. Click **Add**. The **Add Service** **Basic Options** page displays.
4. In the **Service Name** field, enter `demo-service-d01`.
5. From the **Platform** list box, select **Linux/Docker Native**.
6. In the **Docker Image** field, enter `duplocloud/nodejs-hello:latest`.
7. From the **Docker Networks** list box, select **Docker Default**.<br>

   <figure><img src="/files/T2GHw5PnAIUTYlC4OapA" alt=""><figcaption><p>The <strong>Add Service</strong> page</p></figcaption></figure>
8. Click **Next**. The **Advanced Options** page displays.
9. Click **Create**.

{% hint style="info" %}
On the Add Service page, you can also specify optional **Environment Variables** (EVs) such as databases, Hosts, ports, etc. You can also pass [Docker credentials](/docs/automation-platform/overview/aws-services/containers/docker-registry-credentials.md) using EVs for testing purposes.
{% endhint %}

## Checking Your Work

1. In the **Tenant** list box, select **dev01**.
2. Navigate to **Docker** -> **Services.**
3. In the **NAME** column, select **demo-service-d01.**
4. Check the **Current** column to verify that **demo-service-d01** has a status of **Running**.<br>

   <figure><img src="/files/6nXfYWCc1Iuzpxhdsi60" alt=""><figcaption><p>The <strong>demo-service-d01</strong> Service details page displaying a <strong>Running</strong> status</p></figcaption></figure>

{% hint style="info" %}
Once the Service is **Running**, you can check the logs for additional information. On the **Services** page, select the **Containers** tab, click the menu icon ( <img src="/files/7DagHksotNef8625xoXr" alt="" data-size="line"> ) next to the container name, and select **Logs**.
{% endhint %}

<figure><img src="/files/mydR0ho0BKj7PAPmpdny" alt=""><figcaption><p>The details page for <strong>demo-service-d01-1</strong></p></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.duplocloud.com/docs/automation-platform/overview/quick-start/quick-start-duplocloud-docker-services/step-5-create-app-via-docker-native.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
