mirror of
https://github.com/distribution/distribution-library-image
synced 2024-11-07 05:05:50 +01:00
Add serve into the entrypoint to retain backward compatibility so the registry
can be run as so: docker run --rm --volume /etc/docker-registry.conf:/etc/docker-registry.conf \ registry:2 /etc/docker-registry.conf See: https://github.com/docker/distribution/issues/1631 Signed-off-by: Richard Scothern <richard.scothern@gmail.com>
This commit is contained in:
parent
467e93ea92
commit
740a307bda
@ -11,5 +11,5 @@ COPY ./registry/config-example.yml /etc/docker/registry/config.yml
|
||||
|
||||
VOLUME ["/var/lib/registry"]
|
||||
EXPOSE 5000
|
||||
ENTRYPOINT ["/bin/registry"]
|
||||
CMD ["serve", "/etc/docker/registry/config.yml"]
|
||||
ENTRYPOINT ["/bin/registry", "serve"]
|
||||
CMD ["/etc/docker/registry/config.yml"]
|
||||
|
Loading…
Reference in New Issue
Block a user