Clone an App Safely

Who this is for

Users who want to create a copy of a container app — for example, to create a staging environment, test configuration changes, or migrate to a new server.


Limitations

⚠️ Clone is only supported for container-kind apps (appKind: container). Compose apps and apps deployed from an uploaded archive cannot be cloned via this feature.

For compose apps, manually create a new app with the same configuration.


What Cloning Does

Cloning creates a new app that is a copy of the source app's configuration:

  • Same image reference
  • Same environment variables (copied at clone time)
  • Same resource limits (CPU, memory)
  • Same restart policy
  • Same health path

The clone starts as an independent app. Changes to the clone do not affect the original.


How to Clone a Container App

  1. Open the app detail.
  2. Click Clone App.
  3. Fill in:
FieldDescription
New app nameA unique name for the clone
Target serverOptional — leave blank to clone to the same server
Host portOptional — override the port (CloudAIPilot auto-bumps if there's a conflict)
  1. Click Clone.

If the specified (or default) host port is in use, CloudAIPilot automatically assigns the next available port.


After Cloning

  • The new app appears in the Apps tab on the target server.
  • If you specified a different server, the app is deployed on that server.
  • A deploy is triggered immediately if the source app has an image or repository configured.
  • The clone does not have domains automatically set up — add custom domains separately if needed.

Use Cases

Use caseHow to configure
Create a staging copyClone to same server, different name and port
Test a configuration changeClone, modify env vars on clone, test
Migrate to a new serverClone with target server set to the new server

What Success Looks Like

The cloned app appears in the Apps list with status running (after the deploy completes). The original app continues running unaffected.


Common Issues and Fixes

IssueLikely causeFix
"NOT_IMPLEMENTED" errorApp is compose or upload kindClone is not supported for this app type. Create a new app manually.
"NAME_CONFLICT"Name already used on the target serverChoose a different name.
Port auto-bumped unexpectedlyConflict on original portCheck which port was assigned in the Activity Center and update any firewall or DNS rules accordingly.

Related Articles