Giter Site home page Giter Site logo

Comments (5)

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

We have created an issue in Pivotal Tracker to manage this. You can view the current status of your issue at: https://www.pivotaltracker.com/story/show/89843986.

from diego-release.

onsi avatar onsi commented on August 10, 2024

Hi @HelloLin - our goal is to eventually support Docker images without the need for any modification. The largest remaining gap is around support for users and groups -- our goal is to honor the Docker USER directive and create whatever user is specified in the Dockerfile that generated the Docker image. That should resolve all your issues simultaneously.

However, we have a number of higher priority items at this point but will try to address this as soon as we can.

For now, your best bet is to open up the permissions on your container file system to allow an arbitrary user to successfully launch the application (for example, you may need to change the permissions on the destination file that your script attempts to write to).

from diego-release.

 avatar commented on August 10, 2024

@onsi thank you for your answer. in fact, i find there is a struct define for specify the user when start the container, but default set to vcap or root. so i solve it by adding a script in "/var/vcap/packages/garden-linux/skeleton/setup.sh"

if [ -d "$rootfs_path/mydir/" ]; then
chroot $rootfs_path chown -R vcap:vcap /mydir
fi

in this way i can write to this dir, but, is this a good way to solve this question?,if mydir is big enough, it will take me a long time.

is diego will support to push a dockerfile to create a app in the feature?
the most important question is when the community will publish the release which eventually support Docker images?
thank you very much.

from diego-release.

onsi avatar onsi commented on August 10, 2024

We want to implement user support comprehensively and correctly. Your script gets you past the current barrier but is not a long-term solution.

Diego currently supports pushing dockerfiles to create applications. There are issues around users (as I mentioned) but apart from that you can tell cloud controller you want a docker-based application today. The CF diego plugin (installation instructions here) has subcommands for pushing docker applications. You do need to enable diego-docker support in CC (it's turned off by default).

At this point we don't recommend running Docker applications in multi-tenant environments.

from diego-release.

 avatar commented on August 10, 2024

thank you for your answer.

from diego-release.

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.