Error if image contains a USER entry
Issue #43
open
If image specifies a USER label to launch container with specified user, then godocker fails to execute scripts as it expects to be root
Comments (6)
-
reporter -
reporter Fix for swarm and mesos, set default user to root. For mesos, use DockerInfo parameters. Not a best as it may deprecate one day.
-
reporter Patch delete user if it exists then create a new one matching user sending the job. If tool needs some profile related to previously existing user, one need to recreate the environment.
-
reporter - changed status to open
-
reporter -
assigned issue to
-
assigned issue to
-
reporter For Kubernetes, should investigate with PodSecurityContext runAsUser
- Log in to comment
Need to override this USER. Workaround: recreate image, removing the USER label from Dockerfile