Skip to content

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

License

Notifications You must be signed in to change notification settings

MoserMichael/docker-force-attach

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published