Skip to content
This repository was archived by the owner on Sep 12, 2018. It is now read-only.

Commit 14796be

Browse files
committed
Merge pull request #684 from rtrauntvein/patch-1
Add table of contents to README.md
2 parents 747fe18 + eebe922 commit 14796be

File tree

1 file changed

+37
-24
lines changed

1 file changed

+37
-24
lines changed

README.md

Lines changed: 37 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,28 @@ The stable, released version is the [0.9.0 tag](https://github.com/docker/docker
1515

1616
Please also have a quick look at the [FAQ](FAQ.md) before reporting bugs.
1717

18-
Quick start
19-
===========
18+
# Table of Contents
19+
- [Quick Start](#quick-start)
20+
- [Configuration mechanism overview](#configuration-mechanism-overview)
21+
- [Configuration flavors](#configuration-flavors)
22+
- [Example config](#example-config)
23+
- [Available configuration options](#available-configuration-options)
24+
- [General options](#general-options)
25+
- [Authentication options](#authentication-options)
26+
- [Search-engine options](#Search-engine-options)
27+
- [sqlalchemy](#sqlalchemy)
28+
- [Mirroring Options](#mirroring-options)
29+
- [Cache options](#cache-options)
30+
- [Storage options](#storage-options)
31+
- [storage file](#storage-file)
32+
- [Persistent storage](#persistent-storage)
33+
- [storage s3](#storage-s3)
34+
- [Your own config](#your-own-config)
35+
- [Advanced use](#advanced-user)
36+
- [Drivers](#drivers)
37+
- [For developers](#for-developers)
38+
39+
# Quick start
2040

2141
The fastest way to get running:
2242

@@ -40,8 +60,7 @@ docker run \
4060
```
4161

4262

43-
Configuration mechanism overview
44-
================================
63+
# Configuration mechanism overview
4564

4665
By default, the registry will use the [config_sample.yml](config/config_sample.yml) configuration to start.
4766

@@ -52,8 +71,7 @@ You may also use different "flavors" from that file (see below).
5271
Finally, you can use your own configuration file (see below).
5372

5473

55-
Configuration flavors
56-
=====================
74+
# Configuration flavors
5775

5876
The registry can be instructed to use a specific flavor from a configuration file.
5977

@@ -87,7 +105,7 @@ with a simple syntax: `_env:VARIABLENAME[:DEFAULT]`. Check this syntax
87105
in action in the example below...
88106

89107

90-
#### Example config
108+
## Example config
91109

92110
```yaml
93111

@@ -125,8 +143,7 @@ test:
125143
126144
127145
128-
Available configuration options
129-
===============================
146+
# Available configuration options
130147
131148
When using the `config_sample.yml`, you can pass all options through as environment variables. See [`config_sample.yml`](config/config_sample.yml) for the mapping.
132149

@@ -146,7 +163,7 @@ When using the `config_sample.yml`, you can pass all options through as environm
146163
`[Credentials]` section, set `boto_host`, `boto_port` as appropriate for the
147164
service you are using. Alternatively, set `boto_host` and `boto_port` in the config file.
148165

149-
### Authentication options
166+
## Authentication options
150167

151168
1. `standalone`: boolean, run the server in stand-alone mode. This means that
152169
the Index service on index.docker.io will not be used for anything. This
@@ -160,7 +177,7 @@ When using the `config_sample.yml`, you can pass all options through as environm
160177
index. You should provide your own method of authentication (such as Basic
161178
auth).
162179

163-
### Search-engine options
180+
## Search-engine options
164181

165182
The Docker Registry can optionally index repository information in a
166183
database for the `GET /v1/search` [endpoint][search-endpoint]. You
@@ -187,7 +204,7 @@ common:
187204
In this case, the module is imported, and an instance of its `Index`
188205
class is used as the search backend.
189206

190-
#### sqlalchemy
207+
### sqlalchemy
191208

192209
Use [SQLAlchemy][] as the search backend.
193210

@@ -211,7 +228,7 @@ the database, you should launch your registry with
211228

212229
$ docker run -e GUNICORN_OPTS='[--preload]' -p 5000:5000 registry
213230

214-
### Mirroring Options
231+
## Mirroring Options
215232

216233
All mirror options are placed in a `mirroring` section.
217234

@@ -230,7 +247,7 @@ common:
230247
tags_cache_ttl: 172800 # 2 days
231248
```
232249

233-
### Cache options
250+
## Cache options
234251

235252
It's possible to add an LRU cache to access small files. In this case you need
236253
to spawn a [redis-server](http://redis.io/) configured in
@@ -271,7 +288,7 @@ To use and install one of these alternate storages:
271288
* [gcs](https://github.com/dmp42/docker-registry-driver-gcs)
272289
* [glance](https://github.com/dmp42/docker-registry-driver-glance)
273290

274-
### storage: file
291+
### storage file
275292

276293
1. `storage_path`: Path on the filesystem where to store data
277294

@@ -294,7 +311,7 @@ Example:
294311
docker run -p 5000 -v /tmp/registry:/tmp/registry registry
295312
```
296313

297-
### storage: s3
314+
### storage s3
298315
AWS Simple Storage Service options
299316

300317
1. `s3_access_key`: string, S3 access key
@@ -323,8 +340,7 @@ prod:
323340
s3_secret_key: xdDowwlK7TJajV1Y7EoOZrmuPEJlHYcNP2k4j49T
324341
```
325342

326-
Your own config
327-
===============
343+
# Your own config
328344

329345
Start from a copy of [config_sample.yml](config/config_sample.yml).
330346

@@ -334,18 +350,15 @@ Then, start your registry with a mount point to expose your new configuration in
334350
sudo docker run -p 5000:5000 -v /home/me/myfolder:/registry-conf -e DOCKER_REGISTRY_CONFIG=/registry-conf/mysuperconfig.yml registry
335351
```
336352

337-
Advanced use
338-
============
353+
# Advanced use
339354

340355
For more features and advanced options, have a look at the [advanced features documentation](ADVANCED.md)
341356

342-
Drivers
343-
=======
357+
# Drivers
344358

345359
For more backend drivers, please read [drivers.md](DRIVERS.md)
346360

347-
For developers
348-
==============
361+
# For developers
349362

350363
Read [contributing](CONTRIBUTING.md)
351364

0 commit comments

Comments
 (0)