Learn how to deploy your code to Aptible from a Docker Image
⚠️ Prerequisites: Install the Aptible CLI
aptible apps:create
to create an app. Note the handle you give to the app. We’ll refer to it as $APP_HANDLE
.
aptible deploy
command to deploy a public Docker image to your app like so:
📘 If you are migrating from Dockerfile Deploy, you should also add the —git-detach flag to this command the first time you deploy. See Migrating from Dockerfile Deploy for more information.
⚠️ Prerequisites: Install the Aptible CLI and the Terraform CLI
aptible_app
resource.
APTIBLE_DOCKER_IMAGE
, APTIBLE_PRIVATE_REGISTRY_USERNAME
, and APTIBLE_PRIVATE_REGISTRY_PASSWORD
.
📘 Please ensure you have the correct image, username, and password set every time you run. terraform apply
See Terraform’s refresh Terraform configuration documentation for more infromation