MoserMichael / docker-force-attach

script to attach shell to running docker container - even if there is no shell in the image

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

force attach shell to a running docker

The docker-force-attach.sh script attaches a shell on a given docker container. The script first tries to attach a shell with any one of the known shells, If this fails, then a statically compiled bash shell executable is downloaded from github and copied to the running container. The executables of the latest release for the following project are downloaded: robxu9/bash-static

Usage

./docker-force-attach.sh <docker id>

About

script to attach shell to running docker container - even if there is no shell in the image

License:MIT License


Languages

Language:Shell 96.9%Language:Makefile 3.1%