Correct hardcode of Container Name when stopping the container

pull/2/head
Stanley Lim 2020-05-23 16:50:09 +08:00
parent d5a9d7a0b8
commit 32175ec2bf
No known key found for this signature in database
GPG Key ID: 61D22BCCC48FBA52
1 changed files with 1 additions and 1 deletions

2
run.sh
View File

@ -33,7 +33,7 @@ function _get_phy_from_dev() {
function _cleanup() {
echo -e "\n* cleaning up..."
echo "* stopping container"
docker stop openwrt_1 >/dev/null
docker stop $CONTAINER >/dev/null
echo "* cleaning up netns symlink"
sudo rm -rf /var/run/netns/$CONTAINER
echo "* removing DHCP lease"