Merge pull request #2 from v01ded/fix_close_container_error

Correct hardcode of Container Name when stopping the container
pull/5/head
oofnikj 2020-05-23 18:04:40 +03:00 committed by GitHub
commit 531c83699a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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() { function _cleanup() {
echo -e "\n* cleaning up..." echo -e "\n* cleaning up..."
echo "* stopping container" echo "* stopping container"
docker stop openwrt_1 >/dev/null docker stop $CONTAINER >/dev/null
echo "* cleaning up netns symlink" echo "* cleaning up netns symlink"
sudo rm -rf /var/run/netns/$CONTAINER sudo rm -rf /var/run/netns/$CONTAINER
echo "* removing DHCP lease" echo "* removing DHCP lease"