update files

Signed-off-by: Jess Frazelle <acidburn@microsoft.com>
This commit is contained in:
Jess Frazelle 2018-07-15 17:51:30 -04:00
parent 58cebbaa58
commit d135555c4a
No known key found for this signature in database
GPG key ID: 18F3685C0022BFF3
3 changed files with 13 additions and 9 deletions

11
.goosarch Normal file
View file

@ -0,0 +1,11 @@
darwin/amd64
darwin/386
freebsd/amd64
freebsd/386
linux/arm
linux/arm64
linux/amd64
linux/386
solaris/amd64
windows/amd64
windows/386

View file

@ -26,13 +26,9 @@ Docker registry v2 command line client.
For installation instructions from binaries please visit the [Releases Page](https://github.com/genuinetools/reg/releases).
- **darwin** [386](https://github.com/genuinetools/reg/releases/download/v0.14.2/reg-darwin-386) / [amd64](https://github.com/genuinetools/reg/releases/download/v0.14.2/reg-darwin-amd64)
- **linux** [386](https://github.com/genuinetools/reg/releases/download/v0.14.2/reg-linux-386) / [amd64](https://github.com/genuinetools/reg/releases/download/v0.14.2/reg-linux-amd64) / [arm](https://github.com/genuinetools/reg/releases/download/v0.14.2/reg-linux-arm) / [arm64](https://github.com/genuinetools/reg/releases/download/v0.14.2/reg-linux-arm64)
- **windows** [386](https://github.com/genuinetools/reg/releases/download/v0.14.2/reg-windows-386) / [amd64](https://github.com/genuinetools/reg/releases/download/v0.14.2/reg-windows-amd64)
#### Via Go
```bash
```console
$ go get github.com/genuinetools/reg
```
@ -74,9 +70,6 @@ GLOBAL OPTIONS:
--version, -v print the version
```
Note that the `--registry` can be set by an environment variable `REG_REGISTRY`, so you can set this in your shell login scripts.
Specifying the registry on the command-line will override an environment variable setting.
**NOTE:** Be aware that `reg ls` doesn't work with `hub.docker.com` as it has a different API then the [OSS Docker Registry](https://github.com/docker/distribution)
### Auth

View file

@ -107,7 +107,7 @@ func TestMain(m *testing.M) {
func run(args ...string) (string, error) {
prog := "./testreg" + exeSuffix
// always add trust insecure, and the registry
newargs := append([]string{"-d", "-k"}, args...)
newargs := append(args, "-d", "-k")
cmd := exec.Command(prog, newargs...)
cmd.Env = []string{"REG_REGISTRY=localhost:5000"}
out, err := cmd.CombinedOutput()