anchor.diff:  if not exist c:\ProgramData\docker\certs.d\ (
       mkdir c:\ProgramData\docker\certs.d\ || goto :ERRORHANDLER
   )
  +icacls.exe c:\ProgramData\docker\certs.d\ /T /grant BUILTIN\Administrators:(OI)(CI)F /grant SYSTEM:(OI)(CI)F /inheritance:r || goto :ERRORHANDLER
   xcopy /O %cdpath%server\* c:\ProgramData\docker\certs.d\
   echo Configuring the Docker client in %USERPROFILE%\.docker\ to connect using TLS for the current user.
   if not exist %USERPROFILE%\.docker\ (
       mkdir %USERPROFILE%\.docker\ || goto :ERRORHANDLER
   )
  +icacls.exe %USERPROFILE%\.docker\ /T /grant %USERDOMAIN%\%USERNAME%:(OI)(CI)F /inheritance:r || goto :ERRORHANDLER
   xcopy /O %cdpath%client\* %USERPROFILE%\.docker\ || goto :ERRORHANDLER
   echo Restarting Docker
   net stop Docker || goto :ERRORHANDLER
  
positive.code: net session >nul 2>&1
  if %errorLevel% NEQ 0 (
      echo Please run this script with Administrator privileges
      timeout 10 > NUL
      EXIT /B 1
  )
  SET cdpath=%~dp0
  if not exist c:\ProgramData\docker\ (
      echo Error: Could not find Docker in c:\ProgramData\docker\.
      echo Please install Docker before running this script.
      timeout 10 > NUL
      EXIT /B 1
  )
  echo Setting the system environment variable DOCKER_HOST
  
negative.code: 
  :ERRORHANDLER
  echo Error: Command failed with errorlevel #%errorlevel%.
  timeout 30
  exit /B %errorlevel%
  