/
githubmirror
/
commcare-hq
Обзор
Документация
Войти
/
githubmirror
/
commcare-hq
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
scripts/get_webhost
6 строк
212 B
Norman Hooper
Add get_webhost script to find IP address
20 ноя 2017, 22:37
20 ноя 2017, 22:37
c1d1114
Код
Авторство
О чём код?
#!/bin/bash # Returns the IP address of the default gateway on the Docker network CONTAINER=$(docker container ls | awk '/formplayer/ { print $1 }') docker exec $CONTAINER sh -c 'cat /etc/hosts | grep webhost'