Step 1: Log in to Huawei Cloud Console
- Log in to your Huawei Cloud account.
- In the Services List, search for VPC and select the VPC Service.
Step 2: Create a VPC
- On the VPC console page, click Create.
- Fill in the VPC Name and Subnet Name.
- Click Create Now to create the VPC.
Step 3: Create an ECS Instance
- Return to the Huawei Cloud console and search for ECS.
- Click Buy ECS.
- Choose the specifications for your instance and click Submit.
Step 4: Create a Security Group
- Click Create Security Group.
- Add inbound rules for ports: o 22 for SSH o 80 for HTTP o 8080 for alternative HTTP o (You can modify these rules later if needed).
Step 5: Create a Key Pair
- Click Create Key Pair to generate a key pair for connecting to your ECS instance.
Step 6: Retrieve the ECS Public IP and Connect via CLI
- Go to the ECS Console and locate your instance.
- Copy the Public IP address of your ECS instance.
- Use a CLI tool like MobaXterm, PuTTY, or any SSH client to connect to your ECS instance:
o Open your SSH client.
o Enter the Public IP of your ECS instance.
o Use the Key Pair you created earlier for authentication.
o Log in as the default user root .
Step 7: Install Docker on the ECS Instance
Run the following commands in your ECS instance:
for pkg in docker.io docker-doc docker-compose docker-compose-v2 podman-docker containerd runc; do sudo apt-get remove $pkg; done
sudo apt-get update
sudo apt-get install ca-certificates curl
sudo install -m 0755 -d /etc/apt/keyrings
sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc
sudo chmod a+r /etc/apt/keyrings/docker.asc
echo \
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu \
$(. /etc/os-release && echo "${UBUNTU_CODENAME:-$VERSION_CODENAME}") stable" | \
sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
sudo apt-get update
sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
Step 8: Pull and Run Ollama Image
- Pull the Ollama Docker image:
docker pull ollama/ollama
Run the Ollama container:
docker run -d -v ollama:/root/.ollama -p 11434:11434 --name ollama ollama/ollama
Choose the DeepSeek Module:
Visit the Ollama Library and search for the DeepSeek model.
Select the model you want to use (e.g., deepseek-r1:7b).
Run the Ollama container:
docker run -d -v ollama:/root/.ollama -p 11434:11434 --name ollama ollama/ollama
Chat with DeepSeek. Type /bye
to exit.
Step 9: Set Up Open WebUI
- Run the Open WebUI container:
docker run -d -p 3000:8080 --add-host=host.docker.internal:host-gateway –v open-webui:/app/backend/data --name open-webui --restart always ghcr.io/open-webui/open-webui:main
Go to the ECS page and modify the security group to add inbound rules for ports 11434 and 3000.
Step 10: Access Open WebUI
- Copy the Public IP of your ECS instance.
- Open a browser and navigate to http://:3000.
- Click Get Started, then create an account with your name, email, and password.
Step 11: Start Chatting
You can now chat with DeepSeek using the Open WebUI interface.
Top comments (0)