# 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](https://docs.duplocloud.com/docs/automation-platform/overview/quick-start/step-1-infrastructure) exist, both named **NONPROD**.
* A Tenant named [**dev01** has been created](https://docs.duplocloud.com/docs/automation-platform/overview/quick-start/step-2-tenant).
* An EC2 Host named [host01 has been created](https://docs.duplocloud.com/docs/automation-platform/overview/quick-start/quick-start-duplocloud-docker-services/step-4-create-ec2-host).

## Creating a Service with Native Docker&#x20;

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**.\\

   <figure><img src="https://2471407984-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F68cb0s9ce5UIUKWPuYs8%2Fuploads%2F3MWpfVR6Zs5AbxCYED7J%2FScreenshot%20(122).png?alt=media&#x26;token=4e4c517c-ab92-4cfd-a68f-f384e2bc627b" 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](https://docs.duplocloud.com/docs/automation-platform/overview/aws-services/containers/docker-registry-credentials) using EVs for testing purposes.&#x20;
{% 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**.\\

   <figure><img src="https://2471407984-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F68cb0s9ce5UIUKWPuYs8%2Fuploads%2FqcL21Fx0hdaKyzxxTk2I%2FNEWSERVICES.png?alt=media&#x26;token=98500781-514c-4336-a9df-38a7fba5a345" 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="https://2471407984-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F68cb0s9ce5UIUKWPuYs8%2Fuploads%2FGJiV5isPea1cJpDaST8Y%2FKabab_three_Vertical_dots.png?alt=media&#x26;token=8dc57231-3b8d-4d08-803e-20f51fb20253" alt="" data-size="line"> ) next to the container name, and select **Logs**.&#x20;
{% endhint %}

<figure><img src="https://2471407984-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F68cb0s9ce5UIUKWPuYs8%2Fuploads%2FVdaKJywwMr4qsor6Pm7U%2FNEWSERVICES.png?alt=media&#x26;token=db8b167b-fc64-4e21-9347-9d12c532fae6" alt=""><figcaption><p>The details page for <strong>demo-service-d01-1</strong> </p></figcaption></figure>
