How To Use Docker Desktop To Deploy Docker Containerized Applications

Last Updated : 15 Oct, 2026

Docker Desktop is an application that provides Docker Engine components, a graphical interface, and command-line tools for managing containers. It allows developers to:

  • Build Docker images from application source code.
  • Download images from Docker Hub.
  • Run and manage containers.
  • Configure port mappings and environment variables.
  • View container logs and troubleshoot errors.
  • Manage volumes and networks.

Steps to Deploy a Docker Containerized Application

Step 1: Open Docker Desktop

Launch Docker Desktop and wait until the Docker Engine is running.

Screenshot-2026-10-15-144018

The dashboard provides access to sections such as Containers, Images, Volumes, and Builds.

Step 2: Download a Docker Image

  1. Open the Images section.
  2. Find the option to pull or search for an image.
  3. Search for nginx.
  4. Select the official NGINX image and pull it.
Screenshot-2026-10-15-144127
  1. Wait for the download to complete.

The NGINX image contains the files and configuration needed to run the NGINX web server.

Step 3: Run the Container

  1. Navigate to the Images section.
  2. Locate the downloaded NGINX image.
Screenshot-2026-10-15-144420
  1. Click Run.
  2. Enter a container name, such as nginx-app.
  3. Expand the optional configuration settings if needed.

Step 4: Configure Port Mapping

Port mapping allows users to access a service running inside a container through a port on the host machine.

Configure the following mapping:

SettingValue
Host port8080
Container port80
ProtocolTCP

Click Run to start the container.

Screenshot-2026-10-15-144727

Docker Desktop forwards requests from port 8080 on your computer to port 80 inside the NGINX container.

Step 5: Access the Application

Open a web browser and visit: http://localhost:8080

You should see the default NGINX welcome page.

Screenshot-2026-10-15-144713

This confirms that the container is running and the port mapping is configured correctly.

Step 6: Monitor the Container

Open the Containers section in Docker Desktop and select nginx-app.

You can use the interface to:

  • Check whether the container is running.
  • View application logs.
  • Stop or restart the container.
  • Inspect container details.
  • Remove the container when it is no longer needed.

Best Practices

  • Use trusted and updated base images.
  • Avoid including passwords or API keys in Dockerfiles.
  • Map only the ports required by the application.
  • Use volumes when application data must persist beyond the container lifecycle.
  • Review container logs when troubleshooting errors.
  • Stop and remove unused containers to free resources.
  • Use environment variables or secret-management solutions for application configuration.
Comment