Using promises will make it easier to make multiple API calls in one function. For example:
async function gatherApiInfo() {
let containers = await getAPI('/containers/json');
let images = await getAPI('/images/json');
let volumes = await getAPI('/volumes');
console.log(`${containers}\n${images}\n${volumes}`); // replace console.log with something more useful
}
gatherApiInfo();
Using promises will make it easier to make multiple API calls in one function. For example: