Skip to content

LCOW: docker run --user seems to be ignored #36469

@rn

Description

@rn

When running

docker run --platform linux --user postgres --rm alpine:3.7 id

on LCOW I get:

uid=0(root) gid=0(root)

while on other systems I get:

uid=70(postgres) gid=70(postgres)

Note, the user postgres does exist in alpine:3.7

This is with todays master build and a LinuxKit based LCOW (though that shouldn't matter)

PS> docker version
Client:
 Version:       master-dockerproject-2018-03-01
 API version:   1.37
 Go version:    go1.9.4
 Git commit:    c26f37c0
 Built: Thu Mar  1 23:50:56 2018
 OS/Arch:       windows/amd64
 Experimental:  false
 Orchestrator:  swarm

Server:
 Engine:
  Version:      master-dockerproject-2018-03-01
  API version:  1.37 (minimum version 1.24)
  Go version:   go1.9.4
  Git commit:   7459e4c
  Built:        Thu Mar  1 23:58:02 2018
  OS/Arch:      windows/amd64
  Experimental: true

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/lcowIssues and PR's related to the experimental LCOW featurekind/bugBugs are bugs. The cause may or may not be known at triage time so debugging may be needed.kind/experimentalplatform/windowsversion/master

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions