diff --git a/docker/api/daemon.py b/docker/api/daemon.py index 91c777f092..285b7429ad 100644 --- a/docker/api/daemon.py +++ b/docker/api/daemon.py @@ -100,10 +100,11 @@ def login(self, username, password=None, email=None, registry=None, email (str): The email for the registry account registry (str): URL to the registry. E.g. ``https://index.docker.io/v1/`` - reauth (bool): Whether refresh existing authentication on the - Docker server. - dockercfg_path (str): Use a custom path for the ``.dockercfg`` file - (default ``$HOME/.dockercfg``) + reauth (bool): Whether or not to refresh existing authentication on + the Docker server. + dockercfg_path (str): Use a custom path for the Docker config file + (default ``$HOME/.docker/config.json`` if present, + otherwise``$HOME/.dockercfg``) Returns: (dict): The response from the login request