Skip to content

Cloud Foundry How Tos - Docker container in Cloud Foundry

Info

Running Docker containers in Cloud Foundry is currently only possible for Developer tenants. Apps cannot be validated by App Validation and will not be forwarded to Operator tenant.

Info

Running Docker containers in Cloud Foundry is currently only supported in region Europe 1.

Docker containers based on docker images, which are stored in a Container Registry, can be directly run in Cloud Foundry.

Prerequisites

The following are the prerequisites for running containers which are stored in MindSphere Container Registry Lite:

  • You have created MindSphere Container Registry Robot Account
  • You have logged into docker registry in command line
  • You have tagged the image
  • You have pushed the image to MindSphere Container Registry

Push a Docker Image from MindSphere Container Registry

To deploy a Docker image from MindSphere Container Registry, execute the following command:

1
2
  export CF_DOCKER_PASSWORD={robot_account_password}
  cf push {app_name} --docker-image mcrbasic.registry.eu1.mindsphere.io/{tenant}/{image}:{tag} --docker-username '{robot_account_user}'

For more information refer Deploying an App with Docker.

Any questions left?

Ask the community


Except where otherwise noted, content on this site is licensed under the MindSphere Development License Agreement.