diff --git a/registry/scripts/registry.sh b/registry/scripts/registry.sh
index 95ac8bb670746d76f92e3de9bcbbaac16dc892f3..f447c8635197fbc990411c1811c8483ca8439af5 100755
--- a/registry/scripts/registry.sh
+++ b/registry/scripts/registry.sh
@@ -21,7 +21,7 @@ getip(){
         < /var/lib/dhcp/dhcpd.leases
     }
 
-IP=$(ip a | awk '/inet.*containers/ {print $2}' | cut -d / -f 1)
+IP=$(ip a | awk '/inet.*eth/ {print $2}' | cut -d / -f 1)
 port=9998
 conf_dir="/etc/registry"
 conf_file="$conf_dir/hosts"