Care to share some of those commands :)
Sure! Disclaimer: I'm a docker newbie. Totally green!
1) Create a VM and install Ubuntu. You already did that. Yay! :)
2) In FreeNAS, set up a datastore to share via NFS. I chose to create it with "All Directories" checked, because I want to be able to mount subdirectories individually. Make sure the "NFS" service is started in FreeNAS.
3) Mount that share in your Ubuntu VM. I'm old school (no autofs for me!), so I edited
/etc/fstab and added:
Code:
192.168.1.10:/mnt/Pool/MediaFiles /home/Media nfs rsize=8192,wsize=8192,timeo=14,intr
192.168.1.10 is the FreeNAS IP, /mnt/Pool/MediaFiles is the FreeNAS path, /home/Media is where I want to mount it in Ubuntu.
mount -a
or
mount /home/Media
should mount that share - it gets automatically mounted at reboot due to the fstab entry. Also, make sure that rpc.statd and rpcbind are running on Ubuntu.
4)
apt install docker.io
(for some reason I used docker.io and not just docker. I assume I read somewhere that's either important or easy) If it doesn't run, start it with
systemctl start docker
.
5) I really like "portainer" from "portainer.io" to handle my containers. It doesn't do *everything* that you can do from the command line, but it does enough for me ;)
I installed/ran that via
Code:
docker run \
--name=portainer \
--restart=unless-stopped \
-d -p 9000:9000 \
-v /var/run/docker.sock:/var/run/docker.sock \
portainer/portainer
It REALLY makes sense to put those commands into a file and execute that file
sh FILE
:)
Then open your browser and go to "ip-of-ubuntu:9000"
6) Head on over to "linuxserver.io", go to "docker images". Click on whatever catches your eye, for instance "sabnzbd" :) They give you step-by-step instructions. I copy/paste the "usage" part into a file and edit it in there so I remember the settings. Make sure you edit the various settings, especially take care of the "-v" directory mappings. Basically you map an Ubuntu path to an internal docker-container path. You should NOT rename the container paths, only mess with the left part ;)
I add an option near the top " --restart=unless-stopped" if I want that container to start up automatically (unless if I stopped it!)
Now, the neat thing is: If you screw up with the pathnames, timezone setting, or anything when you "created" your container - let's say you're sticking your movies into the wrong folder, you have to remove and recreate the container (there may be better ways, but hey. I said I was new!)
To do that: Either remove the container in portainer or say:
docker rm <whatever-you-named-the-container in the --name option>
For instance
docker rm sabnzbd
or
docker rm portainer
.
Then edit the file where you set everything up (see above, told you it was a good idea) and re-run that file (or the docker run/create command)
The neat thing is, unless you messed up the "ubuntu=path:/config" setting for your container, all the settings are still there! I've probably re-done "sonarr" half a dozen times because of my inexperience with the path mappings (where do the TV shows go? What's the path to where sab saves the downloads again?) but never had to set up Sonarr from scratch - just tweak it.
I hope that helps to get you started - and I hope I didn't miss anything important!
Frank
Edit: PS! I ran all the commands as root.
sudo -i
is my friend!