oci, but in docker!
-
Make the oci config in ~/.oci/config or other location (but you need to change by yourself)
-
Add below line to your .profile:
oci() { docker run --rm --mount type=bind,source=$HOME/.oci,target=/root/.oci ghcr.io/docker-collection/oci-cli:latest "$@"; }
-
Or you can just manual run by yourself:
- Normal Run
docker run --rm -it -v ${HOME}/.oci:/root/.oci ghcr.io/docker-collection/oci-cli:latest -h
- Override entrypoint
docker run --rm -it -v ${HOME}/.oci:/root/.oci --entrypoint bash ghcr.io/docker-collection/oci-cli:latest