SAP Home Learn Build Integrate Model Operate Extend with AI ConnectTutorial navigator Knowledge Graph API Devtoberfest Developer Advocates App Space

Manage my Account SAP Devs YouTube ↗ Learnings ↗ Community ↗ Provide Feedback ↗
Logout
โคข Open full site

Understand the Cloud Foundry Application Lifecycle for Docker Applications

Understand how Docker works with Cloud Foundry and how to push a Docker image

Overview

🎓 beginner 15 min. SAP BTP Cloud Foundry Runtime And EnvironmentBeginnerCloud

You will learn

  • โœ”The lifecycle of Docker based applications
  • โœ”How to push a Docker application
  • โœ”Considerations when re-pushing and re-staging Docker images
Beyhan Veli B Beyhan Veli April 13, 2026
Created by November 25, 2021
Contributors

Prerequisites

Prerequisites

Steps

Step 1 Understand Docker based applications
โ€”

When you push an application to Cloud Foundry (cf push), it uses a buildpack by default. There is, however, another option to use a Docker image instead of a buildpack with Cloud Foundry as well. You can see the full application lifecycle documented at How Apps are Staged, but for the sake of brevity, just know that the lifecycle is mostly the same when running either a Docker container or buildpack based application. There are some special considerations when it comes to Docker based applications:

  1. When you cf push with a Docker image, the last step of the process is to schedule the app as a long running process, and at this point the Docker image is downloaded. That means that Cloud Foundry will require access to the container registry where the image is stored to start your application.

  2. Access to the registry is also required when the application needs to be re-staged or restarted. If the registry is not accessible, these operations will fail. For this reason it is required to re-push your application if the credentials for a private container registry change.

  3. Additionally, when you use a buildpack, your main concern is your application code. The buildpack takes care of the work of downloading dependencies, compiling code, and creating a droplet from which your application can run. However, when using a Docker image, you have to do all this yourself (set up the image, define dependencies, provide settings the image/app needs to start, etc.)

  4. Related to the above, buildpacks are generally maintained and updated by the Cloud Foundry community, but this is not the case for referenced Docker base images. Here you will need to keep track of security vulnerabilities and update the base images. If a base image is not maintained any more you will need to maintain your own base images. Moral of the story: don’t take on more than you absolutely have to, but be certain you trust the source of all your base images and buildpacks.

Step 2 Push a Docker based application
+
Step 3 Why Docker image tags are relevant for your application
+

Resources

Discussion

Share feedback on this tutorial or join the conversation in SAP Community.

Submit detailed feedback Discuss in Community
Steps
Step 1 of 3
1. Understand Docker based applications 2. Push a Docker based application 3. Why Docker image tags are relevant for your application

Learn more →