refactor(docs): Explain Docker registry use
This commit is contained in:
parent
d6ea3f1853
commit
da60952fe4
@ -42,7 +42,9 @@ docker compose --project-name "${COMPOSE_PROJECT}" --file "${COMPOSE_FILE}" --fi
|
|||||||
|
|
||||||
## Push
|
## Push
|
||||||
|
|
||||||
Push to Docker Hub or your private registry. Setting up a private registry is out of scope of this repo.
|
Push to Docker Hub or your private registry. Setting up a private registry is out of scope of this repo. Once you have a registry available you can use it like so:
|
||||||
|
- On your OS install a Docker credential helper per [github.com/docker/docker-credential-helpers](https://github.com/docker/docker-credential-helpers). This will make sure you won't store credentials hashed (and unencrypted) in `~/.docker/config.json`. On an example Arch Linux machine where D-Bus Secret Service exists this will come via something like the [docker-credential-secretservice-bin](https://aur.archlinux.org/packages/docker-credential-secretservice-bin) Arch User Repository package. Just install and you're done.
|
||||||
|
- Do a `docker login registry.example.com`, enter username and password, confirm login.
|
||||||
|
|
||||||
```
|
```
|
||||||
source "${COMPOSE_ENV}"
|
source "${COMPOSE_ENV}"
|
||||||
|
@ -47,7 +47,9 @@ docker compose --project-name "${COMPOSE_PROJECT}" --file "${COMPOSE_FILE}" --fi
|
|||||||
{% endfor %}
|
{% endfor %}
|
||||||
## Push
|
## Push
|
||||||
|
|
||||||
Push to Docker Hub or your private registry. Setting up a private registry is out of scope of this repo.
|
Push to Docker Hub or your private registry. Setting up a private registry is out of scope of this repo. Once you have a registry available you can use it like so:
|
||||||
|
- On your OS install a Docker credential helper per [github.com/docker/docker-credential-helpers](https://github.com/docker/docker-credential-helpers). This will make sure you won't store credentials hashed (and unencrypted) in `~/.docker/config.json`. On an example Arch Linux machine where D-Bus Secret Service exists this will come via something like the [docker-credential-secretservice-bin](https://aur.archlinux.org/packages/docker-credential-secretservice-bin) Arch User Repository package. Just install and you're done.
|
||||||
|
- Do a `docker login registry.example.com`, enter username and password, confirm login.
|
||||||
|
|
||||||
```
|
```
|
||||||
source "${COMPOSE_ENV}"
|
source "${COMPOSE_ENV}"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user