Closed snazzybunny closed 6 years ago
That is weird; is portainer in /root/dockerimages?
images.forEach(function(image) {
var imagePath = "/root/dockerimages/" + image;
console.log("- Image: " + imagePath);
var command = "gzip -cd " + imagePath + " | docker load";
exec(command, function(error, stdout, stderr) {
if (error) {
return console.log('There has been an error while trying to load this image (' + imagePath + ')');
}
fs.unlinkSync(imagePath);
console.log('The image ' + image + ' has been loaded.');
});
});
it basically goes through every file there
Output only shows for couchdb and not for portainer.