Skip to content

Commit

Permalink
Adds instructions for pushing to Docker Hub Registry to README. (#174)
Browse files Browse the repository at this point in the history
  • Loading branch information
coollog committed Mar 16, 2018
1 parent d81a5ae commit ca95542
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,20 @@ For example, to build the image `aws_account_id.dkr.ecr.region.amazonaws.com/my-
</configuration>
```

#### Using [Docker Hub Registry](https://hub.docker.com/)...

*Make sure you have a [docker-credential-helper](https://github.com/docker/docker-credential-helpers#available-programs) set up. For example, on macOS, the credential helper would be `docker-credential-osxkeychain`. To use a different credential helper, set the [`credHelpers`](#extended-usage) configuration. See [Authentication Methods](#authentication-methods) for other ways of authenticating.*

For example, to build the image `my-docker-id/my-app`, the configuration would be:

```xml
<configuration>
<registry>registry.hub.docker.com</registry>
<repository>my-docker-id/my-app</repository>
<credHelpers><credHelper>osxkeychain</credHelper></credHelpers>
</configuration>
```

#### *TODO: Add more examples for common registries.*

### Build Your Image
Expand Down

0 comments on commit ca95542

Please sign in to comment.