Skip to content

Latest commit

 

History

History
32 lines (20 loc) · 796 Bytes

File metadata and controls

32 lines (20 loc) · 796 Bytes

OracleCLI

oci, but in docker!

Usage

  1. Make the oci config in ~/.oci/config or other location (but you need to change by yourself)

  2. 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 "$@"; }
  3. 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

Reference source