Update docker.py

This commit is contained in:
qiaofeng1227 2023-03-08 16:26:47 +08:00 committed by GitHub
parent 8a0b93ab8b
commit c520f0e43e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -12,13 +12,7 @@ def create_app_directory(app_name):
print("checking dir...")
path = "/data/apps/"+app_name
isexsits = os.path.exists(path)
if isexsits:
return
if not os.path.exists("/tmp/docker-library"):
shell_execute.execute_command_output_all("git clone https://ghproxy.com/https://github.com/Websoft9/docker-library.git /tmp/docker-library")
shell_execute.execute_command_output_all("cp -r /tmp/docker-library/apps/"+app_name+" /data/apps")
return isexsits
def check_app_compose(app_name):
print("checking port...")