How to externally run ipfs commands in a hosted docker container

Hello,

I’m using the ipfs/kubo:v0.17.0 docker image. The intent is to host the node and then run commands on it (e.g. ipfs.files.cp / ipfs.files.mkdir)

It looks like the RPC API is only intended to run locally for security reasons, so I’m struggling to figure out how an external express app can call commands like ipfs.files.cp if the express app can’t access the local network