From 722c6eb1aa533a5f6eec9d000e1f40bddb6f1ee2 Mon Sep 17 00:00:00 2001 From: Andrey Pohilko Date: Sat, 11 Feb 2017 09:07:57 +0600 Subject: [PATCH] described login and password pair --- README.md | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 5f35947..88da36d 100644 --- a/README.md +++ b/README.md @@ -36,6 +36,21 @@ Same as above but with layers registry.py -l user:pass -r https://example.com:5000 -i ubuntu alpine --layers ``` +## Username and password + + It is optional, you can omit it in case if you use insecure registry without authentication (up to you, + but its really insecure; make sure you protect your entire registry from anyone) + + username and password pair can be provided in the following forms +``` + -l username:password + -l 'username':'password' + -l "username":"password" +``` + Username cannot contain colon (':') (I don't think it will contain ever, but anyway I warned you). + Password, in its turn, can contain as many colons as you wish. + + ## Deleting images Keep only last 10 versions (useful for CI): @@ -130,7 +145,7 @@ For tests to work, install `mock` library pip install mock ``` -Running tests is as simple +Running tests is as simple as ``` python test.py ```