docker run --rm -p $1:8080 -e EUREKA=http://192.168.0.31:18761/eureka,http://192.168.0.43:8761/eureka -e HOSTIP=$(ip -4 addr show wlp3s0 | grep -Po 'inet \K[\d.]+') -e PORT=$1 -e ZIPKIN=http://192.168.0.47:9411 icd-search #ex) ./icd-search-start-linux.sh 8081 #EUREKA : 유레카 서버가 실행되고 있는 위치 #HOSTIP : 현재 호스트 컴퓨터 ip #PORT : 서비스가 실행될 포트번호 #ZIPKIN : zipkin이 실행되고있는 위치 #grep options # -P : perl regex # -o : only match