mirror of
https://github.com/Websoft9/websoft9.git
synced 2024-11-22 15:40:22 +00:00
update docker.py
This commit is contained in:
parent
42412226ba
commit
34a032607e
1 changed files with 1 additions and 1 deletions
|
@ -129,7 +129,7 @@ def check_app_compose(app_name, customer_name):
|
|||
myLogger.info_logger("Set port and random password ...")
|
||||
library_path = "/data/library/apps/" + app_name
|
||||
install_path = "/data/apps/" + customer_name
|
||||
port_dic = read_env(library_path + '/.env', "APP_.*_PORT")
|
||||
port_dic = read_env(library_path + '/.env', "APP_.*_PORT=")
|
||||
# 1.判断/data/apps/app_name/.env中的port是否占用,没有被占用,方法结束(get_start_port方法)
|
||||
cmd1 = "docker container inspect $(docker ps -aq) | grep HostPort | awk \'{print $2}\' | sort -u"
|
||||
cmd2 = "netstat -tunlp | grep \"LISTEN\" | awk '{print $4}' | awk -F \":\" '{print $NF}' | sort -u"
|
||||
|
|
Loading…
Reference in a new issue