Sign inSign up

acseo/rancher-container-exec

By acseo

•Updated over 7 years ago

Execute commands in Rancher container

Image
0

370

acseo/rancher-container-exec repository overview

⁠Rancher Container Exec

This small project allows you to easily execute a command into a Rancher Container.

⁠Usage

⁠With the container-exec.sh script

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"'
⁠With the Docker image
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"'

Tag summary

Content type

Image

Digest

Size

34.8 MB

Last updated

over 7 years ago

docker pull acseo/rancher-container-exec