We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ebf6882 commit 4622ff9Copy full SHA for 4622ff9
README.md
@@ -141,7 +141,7 @@ CONFIG=/opt/loglist/conf/application.conf
141
VERSION=latest
142
PORT=9000
143
ENV_FILE=/opt/loglist/conf/loglist.env
144
-DB_IP=`ip -4 addr show scope global dev docker0 | grep inet | awk '{print $2}' | cut -d / -f 1 | sed -n 1p`
+DB_IP=$(docker network inspect --format='{{range .IPAM.Config}}{{.Gateway}}{{end}}' bridge)
145
docker pull codingteam/loglist:$VERSION
146
docker rm -f $NAME
147
docker run -d --restart unless-stopped \
0 commit comments