mirror of
https://github.com/docker/docs.git
synced 2026-04-03 09:49:05 +07:00
Fix bug where error would occur when fetching all containers and would not be reported
This commit is contained in:
@@ -137,6 +137,10 @@ export default {
|
||||
}
|
||||
async.map(containers, (container, callback) => {
|
||||
this.client.getContainer(container.Id).inspect((error, container) => {
|
||||
if (error) {
|
||||
callback(error);
|
||||
return;
|
||||
}
|
||||
container.Name = container.Name.replace('/', '');
|
||||
callback(null, container);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user