Migrate from Docker

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.

Alist

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".

Clawcloud Run Console
App Launchpad

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.

Deploy 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.

Public Address

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.

Custom Domain

Last updated

Was this helpful?