mirror of
https://github.com/project-zot/zot.git
synced 2025-01-20 22:52:51 -05:00
Clarify defaults for running container image
This commit is contained in:
parent
dfd8b84344
commit
98c3237d2f
1 changed files with 6 additions and 10 deletions
16
README.md
16
README.md
|
@ -59,7 +59,7 @@ Examples of config files are available in [examples/](examples/) dir.
|
|||
The [Dockerfile](./Dockerfile) in this repo can be used to build a container image
|
||||
that runs _zot_.
|
||||
|
||||
To build the image:
|
||||
To build the image with ref `zot:latest`:
|
||||
|
||||
```
|
||||
make image
|
||||
|
@ -69,25 +69,21 @@ Then run the image with your preferred container runtime:
|
|||
|
||||
```
|
||||
# with podman
|
||||
podman run --rm -p 5000:5000 \
|
||||
-v $(pwd)/registry:/var/lib/registry \
|
||||
zot:latest
|
||||
podman run --rm -p 5000:5000 -v $(pwd)/registry:/var/lib/registry zot:latest
|
||||
|
||||
# with docker
|
||||
docker run --rm -p 5000:5000 \
|
||||
-v $(pwd)/registry:/var/lib/registry \
|
||||
zot:latest
|
||||
docker run --rm -p 5000:5000 -v $(pwd)/registry:/var/lib/registry zot:latest
|
||||
```
|
||||
|
||||
By default, the server will use no auth, listen on port 5000,
|
||||
and store content at `/var/lib/registry`.
|
||||
This will run a registry at http://localhost:5000, storing content at `./registry`
|
||||
(bind mounted to `/var/lib/registry` in the container). By default, auth is disabled.
|
||||
|
||||
If you wish use custom configuration settings, you can override
|
||||
the YAML config file located at `/etc/zot/config.yml`:
|
||||
|
||||
```
|
||||
# Example: using a local file "custom-config.yml" that
|
||||
# listens on port 8080 and uses /tmp/zot for storage
|
||||
# listens on port 8080 and uses /tmp/zot for storage root
|
||||
podman run --rm -p 8080:8080 \
|
||||
-v $(pwd)/custom-config.yml:/etc/zot/config.yml \
|
||||
-v $(pwd)/registry:/tmp/zot \
|
||||
|
|
Loading…
Add table
Reference in a new issue