Installation - Docker static
Hi all, I’m trying to run update.php on my docker container to use data_migration. Any suggestions that’ll be great!
Example to do:
php ./update.php --data_user test --data_import articles-of-user-test.zip
Here’s what happens:
$ docker-compose exec web-nginx /bin/sh
/var/www/html/tt-rss # php ./update.php
/bin/sh: php: not found
alex73
4
Similar issue here. Searched too long, so: see https://git.tt-rss.org/fox/ttrss-docker-compose.wiki.git/tree/Home.md#im-trying-to-run-cli-tt-rss-scripts-inside-the-container-and-they-complain-about-root
You will need to identify which php version currently is used in the container. As of this writing it was php81 which resolved to
docker-compose exec --user app app php81 /var/www/html/tt-rss/update.php ...