Added: ability to search for a complete dockerHub repository

This commit is contained in:
Squidly271 2021-01-31 00:34:59 -05:00
parent 54ef9b5cc3
commit ebe827028f
2 changed files with 1 additions and 0 deletions

View File

@ -408,6 +408,7 @@ case 'search_dockerhub':
$communityTemplates = readJsonFile($caPaths['community-templates-info']);
$filter = str_replace(" ","%20",$filter);
$filter = str_replace("/","%20",$filter);
$jsonPage = shell_exec("curl -s -X GET 'https://registry.hub.docker.com/v1/search?q=$filter&page=$pageNumber'");
$pageresults = json_decode($jsonPage,true);
$num_pages = $pageresults['num_pages'];