mkdir -p /openfogos/tencent_sv/
mac=`curl "http://localhost:49193/method?info" | awk '{print $6}' | sed -e 's/"//g' -e 's/,//g'`
echo "mac:" $mac
image_id=`docker images | grep lego | awk '{print $3}'`
echo $image_id
command=`docker run --name tencent_sv --cap-add=SYS_PTRACE --privileged=true --net=host --env MAC=$mac --env NIC=ppp0 -v /openfogos/tencent_sv:/lego/extern -v /etc/localtime:/etc/localtime -d $image_id`
echo $command

#docker run --name tencent_sv --cap-add=SYS_PTRACE --privileged=true --net=host --env MAC=08:00:27 --env NIC=ppp0 -v /openfogos/tencent_sv:/lego/extern -v /etc/localtime:/etc/localtime -d 65bf

## clean
##
rm -rf docker.sh
