qbanxiaoli / fastdfs

FastDFS+FastDHT(单机+集群版)
https://hub.docker.com/r/qbanxiaoli/fastdfs
Apache License 2.0
90 stars 48 forks source link

container ip #1

Closed fjzzmike closed 4 years ago

fjzzmike commented 5 years ago

IP=ifconfig eth0 | grep inet | awk '{print \$2}'| awk -F: '{print \$2}'; \n\ 应该是 "\`", 需要转义。是在 docker run 获取 ip,二不是在 docker build 获取 ip IP=`ifconfig eth0 | grep inet | awk '{print \$2}'| awk -F: '{print \$2}'`; \n\

qbanxiaoli commented 5 years ago

感谢指正,已修改,容器ip是当作环境变量传进去的,这句话是可以去掉的