ghedo / pflask

:sake: Lightweight process containers for Linux
https://ghedo.github.io/pflask/
BSD 2-Clause "Simplified" License
200 stars 33 forks source link

Execute commands after containers become ready #7

Open shankerwangmiao opened 9 years ago

shankerwangmiao commented 9 years ago

Sometimes we need to run some commands outside after the container is ready. For example:

pflask \
    --netif=veth:controler:controlee \  
    "--exec=ip l s controler master br0 up"\
    /bin/bash

So I added the --exec option to execute some commands outside at the time the container is ready.