mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-09-20 14:33:35 +00:00
Fixed clean function in docker.py (#7806)
* Fixed clean function in docker.py * Fixed clean function in docker.py Co-authored-by: “Vijay” <“vijay.l@deuexsolutions.com”>
This commit is contained in:
parent
b2c2369d9a
commit
e473d2caa4
@ -13,7 +13,6 @@ Docker functions for CLI
|
||||
"""
|
||||
import json
|
||||
import pathlib
|
||||
import shutil
|
||||
import sys
|
||||
import tempfile
|
||||
import time
|
||||
@ -215,10 +214,6 @@ def run_docker(
|
||||
logger.info(
|
||||
"Stopping docker compose for OpenMetadata and removing images, networks, volumes..."
|
||||
)
|
||||
logger.info("Do you want to Delete the docker mounted volumes from host")
|
||||
user_response = click.prompt("Please enter [y/N]", type=str)
|
||||
if user_response == "y":
|
||||
shutil.rmtree(MAIN_DIR)
|
||||
docker.compose.down(remove_orphans=True, remove_images="all", volumes=True)
|
||||
logger.info(
|
||||
"Stopped docker compose for OpenMetadata and removing images, networks, volumes."
|
||||
|
Loading…
x
Reference in New Issue
Block a user