fix error in read docker
This commit is contained in:
@@ -9,10 +9,10 @@ import docker
|
|||||||
def show_docker_con_img(input):
|
def show_docker_con_img(input):
|
||||||
output_list = []
|
output_list = []
|
||||||
client = docker.from_env()
|
client = docker.from_env()
|
||||||
if input == "images":
|
if str(input) == "images":
|
||||||
search_query = "RepoTags"
|
search_query = "RepoTags"
|
||||||
test = 'client.' + input + '.list(all=True)'
|
test = 'client.' + input + '.list(all=False)'
|
||||||
if input == "containers":
|
elif input == "containers":
|
||||||
search_query = "Id"
|
search_query = "Id"
|
||||||
test = 'client.' + input + '.list(all=True)'
|
test = 'client.' + input + '.list(all=True)'
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in New Issue
Block a user