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

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

Open
rn opened this Issue Mar 2, 2018 · 5 comments

Comments

Projects
None yet
6 participants
@rn
Copy link
Member

rn commented Mar 2, 2018

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
@vdemeester

This comment has been minimized.

Copy link
Member

vdemeester commented Mar 2, 2018

@jhowardmsft

This comment has been minimized.

Copy link
Contributor

jhowardmsft commented Mar 5, 2018

Yes, known. Most of the "advanced" (basically pretty much everything) flags are not hooked up in LCOW yet.

@wes566

This comment has been minimized.

Copy link

wes566 commented Jul 2, 2018

@jhowardmsft Is --cap-add=NET_ADMIN is another one of those "advanced" flags not hooked up yet? Any timeline or bug I can follow to know when some of these advanced flags get hooked up? Thanks!

@jhowardmsft

This comment has been minimized.

Copy link
Contributor

jhowardmsft commented Jul 2, 2018

--cap-add was added in #37294.

@thaJeztah thaJeztah added the area/lcow label Oct 30, 2018

@tbertenshaw

This comment has been minimized.

Copy link

tbertenshaw commented Mar 18, 2019

is this also true that --platform is ignored?
if i run
docker run -it --platform linux hello-world
on Win 2019 LCOW (experimental flag set) I get the same result as
docker run -it --platform smurf hello-world

which is output containing
The Docker daemon pulled the "hello-world" image from the Docker Hub. (windows-amd64, nanoserver-1809)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.