Code: Select all
$ export rancher="sudo docker run -it rancher/cli2:v2.8.4"
$ $rancher login --token $BEARER_TOKEN http://192.168.0.1:8080/v2-beta/projects/1a5 --context $RANCHER_ENVIRONMENT
FATA[0000] Failed to find schema at [http://192.168.0.1:8080/v3]
$ echo $?
1
$
Code: Select all
$ $rancher --debug login --token $BEARER_TOKEN http://192.168.0.1:8080/v2-beta/projects/1a2 --context $RANCHER_ENVIRONMENT
FATA[0000] Failed to find schema at [http://192.168.0.1:8080/v3]
$ echo $?
1
$