Execute commands in Rancher container
370
This small project allows you to easily execute a command into a Rancher Container.
Requirements : curl, jq, wsta.
Usage :
$ ./container-exec.sh \
--rancher-public=YOUR_RANCHER_PUBLIC_KEY \
--rancher-secret=YOUR_RANCHER_SECRETT_KEY \
--rancher-host=https://YOUR_RANCHER_HOST \
--rancher-websocket=wss://YOUR_RANCHER_HOST/v1/exec \
--container-name=_YOUR_CONTAINER_NAME \
--command='"your", "commands"'
docker run acseo/rancher-container-exec /app/container-exec \
--rancher-public=YOUR_RANCHER_PUBLIC_KEY \
--rancher-secret=YOUR_RANCHER_SECRETT_KEY \
--rancher-host=https://YOUR_RANCHER_HOST \
--rancher-websocket=wss://YOUR_RANCHER_HOST/v1/exec \
--container-name=_YOUR_CONTAINER_NAME \
--command='"your", "commands"'
Content type
Image
Digest
Size
34.8 MB
Last updated
over 7 years ago
docker pull acseo/rancher-container-exec