Docker Community Forums

Share and learn in the Docker community.

Windows Container Dockerfile "Removing Intermediate Containers" Steps Takes Long Time

When I install a lot of node_modules in my windows container, it takes a very long time to remove the intermediate container in the build process. Has anyone else experienced this?
I’m using Docker For Windows stable


  • Add depends 'docker', '~> 2.0' to your cookbook’s metadata.rb
  • Add include_recipe 'docker::default' to your cookbook. This will handle
    installing the docker gem.
  • Use resources shipped in cookbook in a recipe, the same way you’d
    use core Chef resources (file, template, directory, package, etc).

Hi @lewish95, thank you for your response! I’m not using Ruby, I’m using Node.js. I’m using this image: stefanscherer/node-windows:12.
Do you have any tips for using that image?

I don’t think the issue lies in the specific image though, I’ve used the image below and have the same issues: