I have an old laptop that has a few docker-compose projects with restart=unless-stopped. One of them is possibly causing the laptop to crash on start. The laptop then crashes before I have a chance to stop that container.
I can mount the underlying linux system by booting from a USB and so can access the docker-compose.yml files.
How can I disable the restart policy (possibly once off) so when I boot the laptop, it doesn't start those docker-compose containers?
Can this be done without editting the docker-compose.yml files?