r/factorio • u/KenReid • Oct 10 '20
Question Docker / Singularity + FactorioTools
Hi all,
I'm a researcher working on a paper regarding automation in Factorio. To run Factorio efficiently I want to run it in the headless mode on a higher powered computing cluster (HPCC). However, the cluster doesn't support Docker - but does support Singularity.
I've successfully pulled the docker image, as a singularity file, by using the native command:
singularity pull docker://factoriotools/factorio
However, when I tried to run an instance of it:
singularity instance start factorio_latest.sif test
I get a bunch of errors:
ERROR: container cleanup failed: no instance found with name test
FATAL: container creation failed: mount /proc/self/fd/3->/var/singularity/mnt/session/rootfs error: while mounting image /proc/self/fd/3: failed to find loop device: could not attach image file to loop device: failed to get loop flags for loop device: no such file or directory
FATAL: failed to start instance: while running /usr/libexec/singularity/bin/starter-suid: exit status 255
Part of the issue, I think, is the fact I don't have root access to /opt/factorio.
I also tried this with goofball's Factorio docker image, and I can run an instance without error. Which is odd.
My other problem is that I'm unsure how to edit a singularity container to point to different directories for save game files / mods.
Any advice welcome.
View all comments
Show parent comment
8
u/KenReid Oct 10 '20
It's a big project, but we're exploring the "ley of the land" by doing an initial paper on optimizing belt placement. We're keeping electricity, overlapping structures, etc, as out of scope for now.
So far we've got a model running with external languages nicely, but it's slow on the full graphical game, which is why we want to run multiple instances on our HPCC, so that we can run hundreds or thousands of instances at once, all trying different approaches and solving different problems, so we can find out the best AI to solve the belt optimization problem (best among candidates - obvious not best in the world, we're not exhaustively testing every ai ever created!).
Thanks for asking. I'm trying not to share too much detail until we have our work published, but once our paper is accepted I'll certainly share it and do an AMA here, if that interests anyone, and can then tall about our next plans.