Commit Graph

2 Commits

Author SHA1 Message Date
Richard Scothern d688e56dc3 Detect yaml or subcommand arguments
Signed-off-by: Richard Scothern <richard.scothern@docker.com>
2016-06-14 11:09:06 -07:00
Richard Scothern 578da7e03c Add a startup script (docker-entrypoint.sh) and use it as the entrypoint for the
official image container.

This conforms to the official image rules to run the container with a shell
without using the --entrypoint flags.

Supports:

[o] docker run registry sh                        # /bin/sh
[o] docker run -v /a:/b registry /b/config.yml    # /bin/registry serve /b/config.yml
[o] docker run registry                           # /bin/registry serve /etc/docker/config.yml
[o] docker run -ti registry -h                    # /bin/registry -h
[o] docker run <command> [args]                   # /bin/registry <command> [args]

Signed-off-by: Richard Scothern <richard.scothern@docker.com>
2016-06-14 11:09:06 -07:00