---
title: Create a Docker Image to Deploy to Your Private Repository
slug: manufacturing-connect-edge/create-a-docker-image-to-deploy-to-your-private-repository
docTags: 
createdAt: 2022-09-29T18:30:00.000Z
---

You must configure Docker before you can configure a custom marketplace in Manufacturing Connect Edge. The following example uses Python as the installed application.

# Before You Begin

Before you complete the steps below, make sure you do the following.&#x20;

- Verify the Docker image is on the same network as the Manufacturing Connect Edge device.
- Install Python and Ubuntu.&#x20;

# Create a Docker Image

**To create a Docker image:**

1. Create a project directory named **python-webserver&#xA0;**&#x75;nder the **"\~/"** directory.
2. Create a **Dockerfile&#xA0;**&#x77;ith the following content:
   `FROM ubuntu`
   `RUN apt-get update`
   `RUN apt-get -y install python`
   `RUN apt-get clean`
   `EXPOSE 8000`
   `CMD [ "python", "-m", "SimpleHTTPServer" ]`
3. Build the Docker image:
   `$ ~/python-webserver> docker build -t python-webserver`
4. Create a Docker repository in Docker Hub ([https://hub.docker.com](https://hub.docker.com/)) with the name:
   `<your username>/python-webserver`
5. Push the **python-webserver&#xA0;**&#x69;mage to the Docker Hub:
   `$ ~/python-webserver> docker login —-username=yourhubusername`
   `$ ~/python-webserver> docker tag python-webserver <your username>/python-webserver`
   `$ ~/python-webserver> docker push <your username>/python-webserver`

You can now pull this image into a private repository.

