Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use /etc/passwd in place of the User struct #191

Closed
wants to merge 1 commit into from

Commits on Sep 16, 2015

  1. use /etc/passwd in place of the User struct

    The type of `user` becomes `string` instead of platform-specific
    structure, so the Spec becomes a platform-agnostic structure.
    
    It makes we can parse the config.json as a Spec before knowing the
    os. It removes the User structure confliction for different platforms.
    
    For linux-based container, parsing the /etc/passwd gives us a consistent
    and more reliable way to assign the uid/gids to the process.
    
    Signed-off-by: Lai Jiangshan <jiangshanlai@gmail.com>
    laijs committed Sep 16, 2015
    Configuration menu
    Copy the full SHA
    dd65c01 View commit details
    Browse the repository at this point in the history