From 02690e50ca1608e7b31e8d6259b76386a0a1846d Mon Sep 17 00:00:00 2001 From: Anne Henmi <41210220+ahh-docker@users.noreply.github.com> Date: Wed, 24 Oct 2018 09:20:04 -0600 Subject: [PATCH] Update ce-ee-node-activate.md --- engine/ce-ee-node-activate.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/engine/ce-ee-node-activate.md b/engine/ce-ee-node-activate.md index b05f6ca8bc..c12a1e0256 100644 --- a/engine/ce-ee-node-activate.md +++ b/engine/ce-ee-node-activate.md @@ -52,7 +52,10 @@ Server: 2. Log into the Docker engine from the command line. -**NOTE:** When running the command `docker login`, the shell stores the credentials in the current user's home directory. For CentOS, the `sudo` command overwrites overwrites the $HOME environment variable. +**NOTE:** When running the command `docker login`, the shell stores the credentials in the current user's home +directory. RHEL and Ubuntu-based Linux distributions have different behavior for sudo. RHEL sets $HOME to point +to `/root` while Ubuntu leaves `$HOME` pointing to the user's home directory who ran `sudo` and this can cause +permission and access problems when switching between `sudo` and non-sudo'd commands. For Ubuntu or Debian: