Mahfujul commited on
Commit
0a05367
1 Parent(s): 0c4eddf

Create get_ip.sh

Browse files
Files changed (1) hide show
  1. get_ip.sh +7 -0
get_ip.sh ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ #!/bin/bash
2
+
3
+ # Get container IP address
4
+ CONTAINER_IP=$(hostname -i)
5
+
6
+ # Set it as an environment variable
7
+ export CONTAINER_IP=$CONTAINER_IP