1
0
mirror of https://github.com/docker/docs.git synced 2026-10-31 10:34:26 +03:00

Changing the default config to point to notary-server

Signed-off-by: Diogo Monica <diogo@docker.com>
This commit is contained in:
Diogo Monica
2015-10-12 18:18:43 -07:00
parent 70fe89f69c
commit b18e890e1c
2 changed files with 5 additions and 3 deletions

View File

@@ -42,7 +42,8 @@ Prerequisites:
- [docker and docker-compose](http://docs.docker.com/compose/install/)
- [Notary server configuration](#configure-notary-server)
As setup, lets build notary and then start up a local notary-server.
As setup, lets build notary and then start up a local notary-server (don't forget
to add `127.0.0.1 notary-server` to your `/etc/hosts`).
```sh
make binaries
@@ -52,6 +53,7 @@ docker-compose up -d
Note: In order to have notary use the local notary server and development root CA we can load the local development configuration by appending `-c cmd/notary/config.json` to every command. If you would rather not have to use `-c` on every command, copy `cmd/notary/config.json and cmd/notary/root-ca.crt` to `~/.notary`.
First, lets initiate a notary collection called `example.com/scripts`
```sh
@@ -118,7 +120,7 @@ either `curl` or `openssl`, you will have to use the root CA file in `fixtures/r
OpenSSL example:
`openssl s_client -connect localhost:4443 -CAfile fixtures/root-ca.crt`
`openssl s_client -connect notary-server:4443 -CAfile fixtures/root-ca.crt`
## Compiling Notary Server

View File

@@ -1,6 +1,6 @@
{
"remote_server": {
"url": "https://localhost:4443",
"url": "https://notary-server:4443",
"root_ca": "root-ca.crt"
}
}