Firstly, I am a real beginner so please be kind.
My goal is to run KODI + Samba (LibreElec) and nextcloud on a single Pi which has an 8tb USB RAID1 enclosure connected to it. Maybe the Pi doesn't have enough power to do both these tasks, but energy efficiency is my goal over performance, so I want to at least try.
I used a test microSD card with libreElec, made sure KODI and SMB works, everything good.
Then I installed docker, and read a ton about what docker is and how it works. I get it, all good.
I install the docker repo in KODI and then install a nextcloud container. Surprisingly, this seems to install with no fuss.
Then I see a warning about using a lite db and see a preferred option to use Mariadb, which I saw when I was browsing through the docker repo. So I install Mariadb and set a config for port mapping, folder mapping and password.
And that was where I get past the point of winging it and need some assistance.
SSH in as root then:
- docker ps
- CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
- a0120c73dc4a lsioarmhf/nextcloud:latest "/init" 25 hours ago Up 25 hours 80/tcp, 0.0.0.0:443->443/tcp docker.linuxserver.nextcloud
- 3049a08c04a6 lsioarmhf/mariadb:latest "/init" 25 hours ago Up 25 hours 0.0.0.0:3306->3306/tcp docker.linuxserver.mariadb
- docker exec -it docker.linuxserver.mariadb bash
- [email protected]:/#
so now, IIUC, I am 'inside' the mariadb container.
And this is where I am stuck. I know I need to create a database, but I am unclear how. There seems to be some extremely basic step I'm missing, as when I try:
Obviously I am still in BASH and not in mysql, but I'm lost with the next step, despite reading:
I've really tried to learn this on my own, but I need a little pointer in the right direction. So far this community has been awesome.