I've installed and built my workflows within the n8n container.
https://docs.n8n.io/getting-started/installation/advanced/server-setup.html
It's using docker-compose
and I'm running the container as a non-root user.
Now, I'd like to install PHP (cli) inside the existing (alpine) docker container.
So I've tried this:
docker run -it n8nio/n8n /bin/ash
/data $ apk update
ERROR: Unable to lock database: Permission denied
ERROR: Failed to open apk database: Permission denied
after reading: Install packages in Alpine docker
More digging and I got to:
docker run -it --user=root n8nio/n8n /bin/ash
/data $ apk update
ERROR: Unable to lock database: Permission denied
ERROR: Failed to open apk database: Permission denied
Is there a way to use docker run to install PHP in my existing container?
And if not, should I better add the install command to docker-compose.yml
file?
I don't want to re-create my container, since I've already worked on it.