Andrew Schwartzmeyer created MESOS-8619:
-------------------------------------------
Summary: Docker on Windows uses USERPROFILE instead of HOME for
credentials
Key: MESOS-8619
URL: https://issues.apache.org/jira/browse/MESOS-8619
Project: Mesos
Issue Type: Improvement
Environment: Windows 10 with Docker version 17.12.0-ce, build c97c6d6.
Reporter: Andrew Schwartzmeyer
Assignee: Andrew Schwartzmeyer
The logic for doing a {{docker pull}} of an image for a private registry
assumes that the {{.docker/config.json}} is to be found in {{$HOME}} (according
to the [Mesosphere
insutructions|https://mesosphere.github.io/marathon/docs/native-docker-private-registry.html#docker-containerizer]
and the
[code|https://github.com/apache/mesos/blob/b7933c176d719766bdb6459048ede6e94f6a7763/src/docker/docker.cpp#L1710]).
However, this assumption was only true for Linux per the [Docker
code|https://github.com/moby/moby/blob/3a633a712c8bbb863fe7e57ec132dd87a9c4eff7/pkg/homedir/homedir_unix.go#L14],
but on Windows, Docker explicitly looks at the {{USERPROFILE}} environment
variable, again [per the Docker
code|https://github.com/moby/moby/blob/3a633a712c8bbb863fe7e57ec132dd87a9c4eff7/pkg/homedir/homedir_windows.go#L10].
So in order for Docker to pick up the config file correctly, we need to change
the variable used on Windows in the Docker containerizer.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)