Giter VIP home page Giter VIP logo

Comments (5)

weibeld avatar weibeld commented on August 19, 2024 1

@dkoper if I run

cf push APP -o IMAGE
cf set-env APP VAR value

can't it be that the Docker container is already started without the variable VAR?

Is it necessary to run cf restage APP after cf set-env, like this?

cf push APP -o IMAGE
cf set-env APP VAR value
cf restage APP

from docs-cf-admin.

cf-gitbot avatar cf-gitbot commented on August 19, 2024

We have created an issue in Pivotal Tracker to manage this:

https://www.pivotaltracker.com/story/show/151213624

The labels on this github issue will be updated when the story is started.

from docs-cf-admin.

dkoper avatar dkoper commented on August 19, 2024

Hi @nabiltntn

I assume you are referring to pushing a Docker app and want to set environment variables for the app?
You can either push the app with an app manifest file that declares the environment variables, or push your Docker app first (with cf push APP -o IMAGE) followed by cf set-env for each environment variable you want to set.

from docs-cf-admin.

cheahkhing avatar cheahkhing commented on August 19, 2024

Hi, any reason this is closed? is this supported?

I am looking for ways to push and run docker images with parameters like: -v "xxx:ccc" to mount certain volumes.

Is this doable?

from docs-cf-admin.

loafoe avatar loafoe commented on August 19, 2024

@cheahkhing typically not. Your CF deployment would need to support volume services. See here for details:

https://docs.cloudfoundry.org/devguide/services/using-vol-services.html

from docs-cf-admin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.