Skip to content

About

oci-cli (Command Line Interface for Oracle Cloud Infrastructure) Docker Image

Topics

Resources

Stars

8 stars

Watchers

1 watching

Forks

Repository files navigation

oci-cli-docker

oci-cli (Command Line Interface for Oracle Cloud Infrastructure) Docker Image

oci-cli-docker supports docker and podman on x86-64 and arm64.

Installation

You can install by following these steps:

curl -L# https://raw.githubusercontent.com/shakiyam/oci-cli-docker/main/oci \
  | sudo tee /usr/local/bin/oci >/dev/null
sudo chmod +x /usr/local/bin/oci
"$(command -v docker || command -v podman)" pull ghcr.io/shakiyam/oci-cli

Usage

Run the oci command (recommended) or use the following:

docker container run \
  --name oci$$ \
  --rm \
  -e HOME="$HOME" \
  -i \
  -u "$(id -u):$(id -g)" \
  -v "$HOME/.oci:$HOME/.oci" \
  $([[ -t 0 ]] && echo -t) \
  $([[ -v OCI_CLI_PROFILE ]] && echo "-e OCI_CLI_PROFILE=$OCI_CLI_PROFILE") \
  ghcr.io/shakiyam/oci-cli "$@"

To get help with the command line:

oci --help

or

oci --h

For detailed documentation, see the OCI CLI documentation.

Author

Shinichi Akiyama

License

MIT License

The MIT License applies only to the files in this repository. The image also contains other software under its own licenses.

About

oci-cli (Command Line Interface for Oracle Cloud Infrastructure) Docker Image

Topics

Resources

Stars

8 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages