The Rancher Command Line Interface (CLI)is a unified tool to manage your Rancher server.
816
The Rancher Command Line Interface (CLI)is a unified tool to manage your Rancher server. With this tool, you can control your services, containers and hosts within a Rancher environment and automate them through scripts.
docker run -ti -v $HOME/.rancher:/root/.rancher adopteunops/rancher-cli:latest --url http://YOUR_RANCHER_MASTER_URL config
docker run -ti -v $HOME/.rancher:/root/.rancher/ adopteunops/rancher-cli:latest exec -ti CONTAINER_NAME bash
Such as
Error response from daemon: client is newer than server (client API version: 1.24, server API version: 1.22)
You can specify the docker version api as such
docker run -e DOCKER_API_VERSION=1.22 -ti -v $HOME/.rancher:/root/.rancher/ adopteunops/rancher-cli:latest exec -ti CONTAINER_NAME bash
Content type
Image
Digest
Size
135.2 MB
Last updated
about 10 years ago
docker pull adopteunops/rancher-cli