Create CVM with Private Docker Image
Last updated
Was this helpful?
Last updated
Was this helpful?
Note: This feature requires DStack version 0.3.5 or later
Phala Cloud enables secure deployment of private Docker images from popular container registries, maintaining confidentiality throughout the deployment process. This capability is essential for organizations with proprietary code or sensitive applications.
The most straightforward approach is configuring registry access through the user interface:
Navigate to Advanced Features in the Phala Cloud dashboard
Select Private Container Registry
Enter your registry credentials
Save your configuration
💡 Security Note: All authorization information is protected with end-to-end encryption, ensuring your credentials remain confidential.
For automated deployments or enhanced security, you can set registry credentials as encrypted environment variables:
To download images from Docker Registry, you need to set the following encrypted environment variables: DSTACK_DOCKER_USERNAME and DSTACK_DOCKER_PASSWORD.
To download images from AWS ECR Private Registry, you need to set the following encrypted environment variables: DSTACK_AWS_ACCESS_KEY_ID, DSTACK_AWS_SECRET_ACCESS_KEY, and DSTACK_AWS_REGION, DSTACK_AWS_ECR_REGISTRY.
When using Cloud API to deploy, you still need to set above environment variables.
Check the Cloud API for more details.
If you encounter issues with private image deployment:
Verify your credentials are correct and have not expired
Ensure the image exists in the specified registry
Check that your account has pull permissions for the image
Review the CVM logs for detailed error messages
For additional assistance, join our support groups: 🌍 Global, 🇨🇳 Chinese.