oras
can push/pull any files from/to any registry with OCI support.
If you are using docker/distribution, please make sure the version is 2.7.0
or above.
oras push localhost:5000/hello:latest hello.txt
oras pull localhost:5000/hello:latest
oras
uses the local docker credential by default. Therefore, please run docker login
in advance for any private registries.
oras
also accepts explicit credentials via options. For example,
oras pull -u username -p password myregistry.io/myimage:latest
docker build -t oras .
docker run --rm -it -v $(pwd):/workplace oras pull localhost:5000/hello:latest
docker run --rm -it -v ${pwd}:/workplace oras pull localhost:5000/hello:latest
docker run --rm -it -v %cd%:/workplace oras pull localhost:5000/hello:latest