Step 5: Create a Service

Create a native Docker Service in the DuploCloud Portal

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:

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.

    The Add Service page
  8. Click Next. The Advanced Options page displays.

  9. Click Create.

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 using EVs for testing purposes.

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.

    The demo-service-d01 Service details page displaying a Running status

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 ( ) next to the container name, and select Logs.

The details page for demo-service-d01-1

Last updated

Was this helpful?