Skip to content

Commit

Permalink
tag example
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelmota committed Feb 16, 2019
1 parent c0fc4ff commit a0a5aa3
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
13 changes: 13 additions & 0 deletions README.md
Expand Up @@ -136,6 +136,19 @@ go install github.com/miguelmota/ipdr/cmd/ipdr
docker.localhost:5000/ciqmw4mig2uwaygddjlutoywq43udutvdmuxkcxvetsjp2mjdde27wi
```

Test run:

```bash
$ docker run docker.localhost:5000/ciqmw4mig2uwaygddjlutoywq43udutvdmuxkcxvetsjp2mjdde27wi
hello world
```

Tag Docker image:

```bash
$ docker tag docker.localhost:5000/ciqmw4mig2uwaygddjlutoywq43udutvdmuxkcxvetsjp2mjdde27wi example/hellworld:latest
```

- Run image pulled from IPFS:

```bash
Expand Down
2 changes: 1 addition & 1 deletion cmd/ipdr/main.go
Expand Up @@ -123,7 +123,7 @@ More info: https://github.com/miguelmota/ipdr`,
}

pullCmd.Flags().BoolVarP(&silent, "silent", "s", false, "Silent flag suppresses logs and outputs only Docker repo tag")
pushCmd.Flags().StringVarP(&ipfsHost, "ipfs-host", "", "127.0.0.1:5001", "A remote IPFS API host to pull the image from. Eg. 127.0.0.1:5001")
pullCmd.Flags().StringVarP(&ipfsHost, "ipfs-host", "", "127.0.0.1:5001", "A remote IPFS API host to pull the image from. Eg. 127.0.0.1:5001")
pullCmd.Flags().StringVarP(&dockerRegistryHost, "docker-registry-host", "", "docker.localhost:5000", "The Docker local registry host. Eg. 127.0.0.1:5000 Eg. docker.localhost:5000")

serverCmd := &cobra.Command{
Expand Down

0 comments on commit a0a5aa3

Please sign in to comment.