I’m running Kubo on AWS Fargate in a container.
If the container gets killed the repo.lock file remains and I cannot start my container again.
Also the repo.lock file is apparently owned by root, so the “ipfs” user can’t even delete it…
I tried to create my own Docker image, created my own Dokerfile and tried to extend the ENTRYPOINT to run my own script. This script tries to delete the repo.lock file before starting the IPFS daemon.
I can’t manage to make this work thought. It looks like my script is unable to extend the ENTRYPOINT and CMD correctly.
Anyone has an example on how I can run my own code when the containers starts up, as root, just before the ipfs daemon starts?
And why is the repo.lock file owned by root? This shouldn’t be…