From c8bb6c349dd95cd04f05c7b21787036445ecaea2 Mon Sep 17 00:00:00 2001 From: Erin Corson Date: Tue, 23 Feb 2016 19:44:19 -0700 Subject: [PATCH] readme update --- README.md | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index c77ed4f..f17f826 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # Watchtower ![Watchtower](http://panamax.ca.tier3.io/zodiac/logo-watchtower_thumb.png) -[![Circle CI](https://circleci.com/gh/CenturyLinkLabs/watchtower.svg?style=svg)](https://circleci.com/gh/CenturyLinkLabs/watchtower)  +[![Circle CI](https://circleci.com/gh/CenturyLinkLabs/watchtower.svg?style=svg)](https://circleci.com/gh/CenturyLinkLabs/watchtower)  [![GoDoc](https://godoc.org/github.com/CenturyLinkLabs/watchtower?status.svg)](https://godoc.org/github.com/CenturyLinkLabs/watchtower)  [![](https://badge.imagelayers.io/centurylink/watchtower:latest.svg)](https://imagelayers.io/?images=centurylink/watchtower:latest 'Get your own badge on imagelayers.io') @@ -39,6 +39,16 @@ docker run -d \ centurylink/watchtower ``` +For private images: + +``` +docker run -d \ + --name watchtower \ + -e REPO_USER="username" -e REPO_PASS="pass" -e REPO_EMAIL="email" \ + -v /var/run/docker.sock:/var/run/docker.sock \ + drud/watchtower container_to_watch --debug +``` + ### Arguments By default, watchtower will monitor all containers running within the Docker daemon to which it is pointed (in most cases this will be the local Docker daemon, but you can override it with the `--host` option described in the next section). However, you can restrict watchtower to monitoring a subset of the running containers by specifying the container names as arguments when launching watchtower.