I’m trying to build a new Docker image for our development process, using cpanm
to install a bunch of Perl modules as a base image for various projects.
While developing the Dockerfile, cpanm
returns a failure code because some of the modules did not install cleanly.
I’m fairly sure I need to get apt
to install some more things.
My question is, where can I find the /.cpanm/work
directory quoted in the output, in order to inspect the logs? In the general case, how can I inspect the file system of a failed docker build
command?
Morning edit After biting the bullet and running a find
I discovered
/var/lib/docker/aufs/diff/3afa404e[...]/.cpanm
Is this reliable, or am I better off building a “bare” container and running stuff manually until I have all the things I need?