opctl auth add
Add default auth used to pull ops and images
opctl auth add RESOURCES [flags]
Examples
# add default auth for docker.io
opctl auth add docker.io -u='my-username' -p='my-password'
# add default auth for github.com
opctl auth add github.com -u='my-username' -p='my-password'
Options
-h, --help help for add
-p, --password string Password (env $OPCTL_AUTH_ADD_PASSWORD)
-u, --username string Username (env $OPCTL_AUTH_ADD_USERNAME)
Options inherited from parent commands
--api-listen-address string IP:PORT on which the API server will listen (env $OPCTL_API_LISTEN_ADDRESS) (default "127.0.0.1:42224")
--container-runtime string Runtime for opctl containers. Can be 'docker' (deprecated), 'k8s', or 'embedded' (env $OPCTL_CONTAINER_RUNTIME) (default "docker")
--data-dir string Path of dir used to store opctl data (env $OPCTL_DATA_DIR) (default "/root/opctl")
--dns-listen-address string IP:PORT on which the DNS server will listen (env $OPCTL_DNS_LISTEN_ADDRESS) (default "127.0.0.1:53")
--no-color Disable output coloring (env $OPCTL_NO_COLOR)
SEE ALSO
- opctl auth - Manage auth