From 9269c458bc10d909c4d38552a884b25549a34c75 Mon Sep 17 00:00:00 2001 From: EDIflyer Date: Tue, 12 Jul 2022 16:58:14 +0100 Subject: [PATCH] Expand docker.config section Highlight the benefit of doing this if using 2FA on Docker Hub --- docs/usage-overview.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/usage-overview.md b/docs/usage-overview.md index 1462ba6c0..8c1e12ff6 100644 --- a/docs/usage-overview.md +++ b/docs/usage-overview.md @@ -27,12 +27,12 @@ docker run -d \ Also check out [this Stack Overflow answer](https://stackoverflow.com/a/30494145/7872793) for more options on how to pass environment variables. -Mounting the host's docker config file: +Alternatively if you 2FA authentication setup on Docker Hub then passing username and password will be insufficient. Instead you can run `docker login` to store your credentials in `$HOME/.docker/config.json` and then mount this config file to make it available to the Watchtower container: ```bash docker run -d \ --name watchtower \ - -v /home//.docker/config.json:/config.json \ + -v $HOME/.docker/config.json:/config.json \ -v /var/run/docker.sock:/var/run/docker.sock \ containrrr/watchtower container_to_watch --debug ```