mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Merge pull request #21120 from lirantal/feature/21119-docker-config-for-windows
closes #21119 updating documentation for Windows and OSx users
This commit is contained in:
commit
f3485bc125
1 changed files with 12 additions and 8 deletions
|
@ -31,17 +31,21 @@ Docker itself provides access to Docker Hub services via the `docker search`,
|
||||||
`pull`, `login`, and `push` commands. This page will show you how these commands work.
|
`pull`, `login`, and `push` commands. This page will show you how these commands work.
|
||||||
|
|
||||||
### Account creation and login
|
### Account creation and login
|
||||||
Typically, you'll want to start by creating an account on Docker Hub (if you haven't
|
Before you try an Engine CLI command, if you haven't already, create a Docker
|
||||||
already) and logging in. You can create your account directly on
|
ID. You can do this through [Docker Hub](https://hub.docker.com/). Once you have
|
||||||
[Docker Hub](https://hub.docker.com/account/signup/).
|
a Docker ID, log into your account from the Engine CLI:
|
||||||
|
|
||||||
$ docker login
|
```bash
|
||||||
|
$ docker login
|
||||||
|
```
|
||||||
|
|
||||||
You can now commit and push your own images up to your repos on Docker Hub.
|
The `login` command stores your Docker ID authentication credentials in the
|
||||||
|
`$HOME/.docker/config.json` (Bash notation). For Windows `cmd` users the
|
||||||
|
notation for this file is `%HOME%\.docker\config.json` ; for PowerShell users
|
||||||
|
the notation is `$env:Home\.docker\config.json`.
|
||||||
|
|
||||||
> **Note:**
|
Once you have logged in from the command line, you can `commit` and `push`
|
||||||
> Your authentication credentials will be stored in the `~/.docker/config.json`
|
Engine subcommands to interact with your repos on Docker Hub.
|
||||||
> authentication file in your home directory.
|
|
||||||
|
|
||||||
## Searching for images
|
## Searching for images
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue