Skip to content

Latest commit

 

History

History
43 lines (20 loc) · 676 Bytes

README.md

File metadata and controls

43 lines (20 loc) · 676 Bytes

wsh

execute command inside a Linux Container through unix socket

The orig wsh is copied from cloudfoundry/warden: https://github.com/cloudfoundry/warden

use wsh with docker:

1. get wsh

mkdir $HOME/github

cd $HOME/github

git clone https://github.com/chenyf/wsh.git

2. build wsh

cd wsh

make

3. run container with wshd

mkdir share

cp wshd share/

sudo docker run -d -v $HOME/github/wsh/share:/share -t ubuntu:12.04 /share/wshd --run /share

4. now you can execute command inside container from the host

sudo ./wsh --socket $HOME/github/wsh/share/wshd.sock hostname

sudo ./wsh --socket $HOME/github/wsh/share/wshd.sock ls /

Have funs!