Single line command to run SQL query on database inside Docker container running on remote host:
ssh root@tinkerboard -C 'docker exec -i nextcloud-mariadb mysql -u nextcloud -p -e "SELECT * FROM oc_bruteforce_attempts;" nextcloud'
Paweł Szaga home page
Single line command to run SQL query on database inside Docker container running on remote host: