LogoLogo
Run to Console
  • ClawCloud Run
    • Document
    • Getting Started
      • Create a DevBox
      • Deploy Database
      • Deploy from Docker
      • Deploy from Template
    • Guide
      • App Launchpad
        • Install Application
        • Update Application
        • Custom Domain
        • Exposing Multiple Ports
        • Environment Variables
        • Configuration Files
        • Auto Scaling
        • Persistent Storage
        • Custom Domain Certificates
      • Devbox
        • Devbox List
        • Devbox Details
        • Devbox Release
      • Database
        • PostgreSQL
        • MySQL
        • Redis
        • MongoDB
        • Kafka
        • Milvus
      • Object Storage
      • Advanced
        • Workspace
        • Terminal
        • Cron Job
        • KubeConfig
    • Pricing
    • Billing & Usage
    • Migration
      • Migrate from Docker
      • Migrate from Docker Compose
    • Architecture
      • Devbox Architecture
      • System Architecture
      • User Architecture
    • Legal
      • Privacy Policy
      • Terms and Conditions
      • Data Processing Addendum
    • Changelog
    • Best Practice
    • FAQ
    • More
      • Abuse Complaint
    • Help
  • Blog
Powered by GitBook

Copyright @ 2023-Present CLAWCLOUD. All Rights Reserved.

On this page

Was this helpful?

Export as PDF
  1. ClawCloud Run
  2. Migration

Migrate from Docker

PreviousMigrationNextMigrate from Docker Compose

Last updated 2 months ago

Was this helpful?

This part explains how to migrate applications from native Docker to the Clawcloud Run platform.

Clawcloud Run offers features such as instant deployment, deep CI/CD integration, private networks, observability, and elastic scaling, allowing developers to focus on implementing business logic without worrying about the underlying infrastructure. Thanks to the user-friendly experience provided by the Clawcloud Run platform, developers can more easily migrate, deploy, and manage applications.

This part uses Alist as an example to demonstrate how to migrate applications from native Docker to the Clawcloud Run platform.

Background Information

The Docker deployment command is as follows:

docker run -d --restart=unless-stopped -v /etc/alist:/opt/alist/data -p 5244:5244 -e PUID=0 -e PGID=0 -e UMASK=022 --name="alist" xhofe/alist:latest

primarily involving the following parameters:

  • -v: bind mount a volume;

  • -p: publish a container's port(s) to the host;

  • -e: set environment variables.

Next, we will demonstrate how to deploy an identical application on the Clawcloud Run platform using the same image and configuration parameters.

Deployment Steps

Log in to the Clawcloud Run console, navigate to the App Launchpad application, and click on "Create APP".

On the Application Deployment page, fill in the application parameters as specified in the table below:

Application Parameter
Parameter Value
Description

Application Name

alist

Custom Application Name

Image Type

Public

Public or Private

Image Name

xhofe/alist:latest

<User-name>/<Image-name>:tag

Usage Type

Fixed

Fixed or Scaling

Replicas

1

Set according to actual needs

CPU

0.2 Core

Set according to actual needs

Memory

256 M

Set according to actual needs

Next, configure the application parameters corresponding to the -p, -e, and -v options in the docker run command.

Docker Parameters
Application Parameter
Parameter Value

-p 5244:5244

Network - Container Port

5244

-e PUID=0 -e PGID=0 -e UMASK=022

Advanced Configuration - Environment Variables

PUID=0

PGID=0

UMASK=022

-v /etc/alist:/opt/alist/data

Advanced Configuration - Local Storage

/opt/alist/data

Finally, click "Deploy Application" to deploy the application.

You can now access the application via the Public Address provided by the Clawcloud Run platform, which guarantees secure HTTPS access using our platform's built-in certificate.

You can also use a custom domain to access the application. To set up a custom domain, please add a CNAME record for your domain pointing to the public address at your domain registrar. You can bind your custom domain once the DNS resolution takes effect.

Alist
Clawcloud Run Console
App Launchpad
Deploy Application
Public Address
Custom Domain