GithubHelp home page GithubHelp logo

Comments (4)

gabrtv avatar gabrtv commented on July 30, 2024

This is a bit trickier than changing the user on docker run. We'll need to make sure FS permissions are set correctly and ensure the UID always exists in the target container.

from deis.

gabrtv avatar gabrtv commented on July 30, 2024

The idea here is to use the Config.user from docker image metadata in the case of Docker images. In the case of Heroku-style runtimes, we'll need to inject a UID into the buildstep image.

from deis.

gabrtv avatar gabrtv commented on July 30, 2024

When users are specifying a Dockerfile they have control over the running UID (as well as UID/GIDs on the base image filesystem). We only need to solve the UID 0 issue for Heroku Buildpack style builds that use Buildstep.

from deis.

mboersma avatar mboersma commented on July 30, 2024

Now that Dockerfile build support is in Deis (containerize branch), this is simple: to run your app in a non-root container, put a USER statement in the Dockerfile.

Closing as "won't fix."

from deis.

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.