Skip to content

Commit

Permalink
update example in readme
Browse files Browse the repository at this point in the history
  • Loading branch information
mheiniger committed Jan 31, 2020
1 parent 6dda7d2 commit ce11967
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Rancher v2 CLI with kubectl

If you have done a `rancher login` on the host, you can map the `.rancher` folder into the container to share credentials.

`docker run -rm -it -v ~/.rancher:/root/.rancher sra/rancher-cli-k8s rancher kubectl get nodes`
`docker run -rm -it -v ~/.rancher:/root/.rancher mheiniger/rancher-cli-k8s:latest rancher kubectl get nodes`

Otherwise, you'll need to login using an API token from your rancher gui. In a build scenario You could create a new API key from your account in the rancher2 GUI and then expose it via environment variable and then:

Expand Down

0 comments on commit ce11967

Please sign in to comment.