problem getting docker jailmaker to work #133
Replies: 33 comments 9 replies
-
full thread here |
Beta Was this translation helpful? Give feedback.
-
Don't do this: The jailmaker directory and the files inside it should be exclusively managed by jailmaker. As a rule of thumb, don't add any data there and don't mount any directories from this location inside the jail. My advice is to remove jailmaker and start over with the install and creation of jails. Perhaps first create a very simple jail with When you install docker using the config template, you don't have to do anything else (except for mounting some directories to make them available inside the jail, but these directories should NOT be children of the jailmaker directory). Good luck! |
Beta Was this translation helpful? Give feedback.
-
Ty for the advice, i will try that :} |
Beta Was this translation helpful? Give feedback.
-
still not working after removing the child bind mount you mentioned. i'll try basic and see if that works x-x; |
Beta Was this translation helpful? Give feedback.
-
so if not using the script, they ask you to create the docker manually, but... i don't know how that is why i was using the script ;( yes i created the test jail, no complaints, but at this point what to do x-x; yes install docker manually but how? xd https://docs.docker.com/engine/install/debian/#install-using-the-repository this is guess? |
Beta Was this translation helpful? Give feedback.
-
hm
my conclussion, even when not deploying docker with script, even just the basic simple jail test doesn't even work. so something else is up though not sure what x-x; I'll try deleting the jailmakerdataset again to reinstall jailmaker from scratch though not sure what would change since i've done that before multiple times ;(
|
Beta Was this translation helpful? Give feedback.
-
After creating the simple test jail it is not running as indicated by the output of jlmkr list. You may try starting it with jlmkr start test. Please read the main README carefully. |
Beta Was this translation helpful? Give feedback.
-
Ok so i tried to start from scratch. when trying to delete dataset it says it's in use. so i reboot truenas. then i delete dataset (the jailmaker dataset) then i started over again following the guide (this covers setting up the dataset and also what commands to run in shell)
once done, i then try install but i still ran into the same issue.
i followed all the steps according to the guides :{ not much else i can do.
must have read it a hundred times already, but i'll do it again. but as you can see from all the steps i listed, i really did follow the instructions to the tee but no dice. The thing is i did get it to work the first time. But i did explain that it broke down and never worked again at some point. so that is my situation. I guess doing a factory reset may work, but that is a bit extreme ^-^; |
Beta Was this translation helpful? Give feedback.
-
Think of the jail as a machine of it's own, when it's created it's just a box that has not been plugged to power yet. @mooglestiltzkin as you can see, after before you can jlmkr start test then you should be able to run When you see instructions to install something (for example docker), that means, you login into the machine (with BTW, the reason you were told the dataset was busy when you tried destroying it, it was likely because your jail was started, if you would have done a |
Beta Was this translation helpful? Give feedback.
-
derp. you were right
it works yay..... *faint X_X: Now i need to lie down and rest. i've been at this for hours. i know pathetic but i'm a newb ;( I will be sure to note this down so others don't make my mistake. i'm updating my project journal https://forums.truenas.com/t/qnap-ts-877-truenas-journal/1646/1 the documentation is good, is just that people like me will still make mistakes unfortunately x-x; so i'll try narrate what to watch out for (in my experience setting this up) *e.g. Troubleshooting
etc |
Beta Was this translation helpful? Give feedback.
-
@Jip-Hop I think this is a case where the order of items in the README.md might be tripping users without much experience. (Sorry @mooglestiltzkin to 'talk over you' here, no disrespect). Line 69 states:
It is not running yet, it needs to be started. Then it is followed by the Startup Jails on Boot section, and only then with the Start Jail section. A little edit there, and I think those who take things much more literal, will have an easier time following an updated version of the instrucitons. Maybe even introduce I'll post a PR later if you can't get to it. |
Beta Was this translation helpful? Give feedback.
-
As a general troubleshooting question, do you have any apps running? Also, what are the specs of the machine? Further - I know RTFM seems a bit dismissive, but as a fellow newb - every line is important. There is a link on the cover readme that takes you to a networking document - it was key for me to get networking to work. That document then links to a video about setting up a network bridge. The readme alone doesnt highlight that you need to set a network bridge FIRST in the webui and then use the name bridge you created as the argument for --network-bridge=(the name you gave your bridge). A lot of good information is buried at the bottom of the readme and the other documentation - so take it all in. |
Beta Was this translation helpful? Give feedback.
-
so i thought now i can install the docker script and then start the docker jail, but it can't
only the test jail worked. in the sense that i could at least start that jail and get into the jail's shell. hm This is my setup TS-877 reflashed to truenas dragonfish AMD Ryzen 1400 16gb ddr4 boot drive is a m.2 nvme ssd on an external usb enclosure 4x 4tb hard drives seagate ironwolf 2x m.2 sata ssds (this is used for the vm pool. and where the jailmaker dataset resides) new truenas setup barely a few days old. so i came from a clean fresh environment starting on the dragonfish RC1 then updated to the latest stable today. No i don't have any apps other than truenas. i did try the kubenetes k3, to test unifi controller, tested that works. then i opted to unlink the app pool and restart. Because i was planning to only use docker to then setup portainer to then be able to deploy my docker containers which i am familiar with. so i deleted the ixsystems, app data sets, then also the jailmaker dataset (because i was gonna redo it from scratch). Then i got a warning some service uses one of those datasets, i just click delete anyway. I think things went wrong with jailmaker from that point onward. At least before this, i could at least go into docker shell even if i did not yet figure out the bind mounts at that time and acls/permissions and stuff. but right now i am in the process of trying to setup and get jailmaker to work so i can deploy docker, then to then docker compose up portainer, then to deploy the rest the docker containers. that is the plan. |
Beta Was this translation helpful? Give feedback.
-
do you have networking working from within the test jail? can you ping the world? |
Beta Was this translation helpful? Give feedback.
-
yes, so i
yes it's working that said i don't know how to stop the pinging so i re-enter shell xd
|
Beta Was this translation helpful? Give feedback.
-
I think the edits I suggested above should be sufficient. |
Beta Was this translation helpful? Give feedback.
-
What's the output of: sudo journalctl -eu jlmkr-docker.service have you tried it with |
Beta Was this translation helpful? Give feedback.
-
i deleted docker then same result. then
i'll try change the graphic card setting you mentioned not sure which of this solved the issue. but regardless it worked. i do have a nvidia 1030 GTX MSI AERO 2gb vram low profile graphics card. it does work, because i can connect it to the monitor and it shows display when booting up truenas. fyi. |
Beta Was this translation helpful? Give feedback.
-
IT WORKED. I did 2 things
so i did make a /mnt/xxxxxxxxx /docker/data/ but i did not make a compose because i forgot or i also assumed it would simply create it. but guess not. So this is what i did. as you can see, i removed the docker jail to redo it again. I listed all the steps and what happened exactly.
|
Beta Was this translation helpful? Give feedback.
-
I just ran through the process myself, I never stumbled into the missing |
Beta Was this translation helpful? Give feedback.
-
hm... no. i just delete the docker jail from shell.
but i didn't go into truenas dataset to delete there as well. i was tired and it didn't cross my mind xd oh and ty so much Jip-Hop, Lockszmith-GH, dcwestra. you all made a difference. Also special thx to Stux who has been helping me the longest over at the truenas forum thread for this project. Oh anyone else that i missed. |
Beta Was this translation helpful? Give feedback.
-
newb question, new problem. anyone know how to change the config to install a specific docker version? for truenas there was an issue with the latest docker apparently.
https://forums.truenas.com/t/vm-network-does-not-work-since-installing-docker/2219/3 |
Beta Was this translation helpful? Give feedback.
-
Well, you did say you were going to "lie down and rest", but then continued on ... 🤭
|
Beta Was this translation helpful? Give feedback.
-
yeah but then crunch mode kicked in. Once i encounter a problem i can't stop though i really want to cauz it really bugged me. It's a curse ;( |
Beta Was this translation helpful? Give feedback.
-
OK, let's do this, close this issue, and open a discussion - that is the better convention for this type of help. |
Beta Was this translation helpful? Give feedback.
-
agreed. sorry that did cross my mind. plz proceed |
Beta Was this translation helpful? Give feedback.
-
I think that is true for all of us here. You are in the right place, my friend. |
Beta Was this translation helpful? Give feedback.
-
weird thing happened. i was tabbed to here editing msg, so i didn't have time to press Y. So by the time i went back to do that, it timed out. so i logged back in went to shell to try do it, now jlmkr is offline. To solve that, i had to restart. No idea why that happened but thought i should report it. Anyway managed to get back to docker shell and run the command click yes, then it successfully downgraded |
Beta Was this translation helpful? Give feedback.
-
I successfully deployed and tested working my first docker container. openspeedtest https://forums.truenas.com/t/qnap-ts-877-truenas-journal/1646/307?u=mooglestiltzkin If you are having issues setting up jailmaker docker for truenas (i'm using latest truenas scale dragonfish) just refer to my thread if you are curious. I listed down all the steps i did, and issues i encountered and how i solved it in the end. or ideally if you can, try get it done first using the official guide FIRST, before resorting to checking mine out if you get stuck. https://www.truenas.com/docs/scale/scaletutorials/apps/sandboxes/ Hope it helps. |
Beta Was this translation helpful? Give feedback.
-
i made a mini summary manual for the installation of jailmaker and the steps to get docker up and running stux already added a correction to it already :] hehe |
Beta Was this translation helpful? Give feedback.
-
In my first attempt, i managed to get jailmaker running for initial setup
first i setup the networking first following the youtube guide. All done no issue.
*create the jailmaker dataset first
then go shell run this
then setup the the ./jlmkr.py startup command in truenas advance.
at this point use jailmaker to run the docker script to set that up.
went to jailmaker shell to use docker commands like
docker version
which worked.but i couldn't get the bind mounts to work. so while i was trying to fix that in the config, i noticed truenas update.
So i updated. Noticed jailmaker broke so re-ran the
./jlmkr.py install
some error about can't create symlinks or something
Something didn't work at this point, forgot what. Couldn't access the datasets via smb i think.
So i wanted to start from scratch, so i deleted the datasets, but then it complained a service uses it, but i deleted it anyway. I then rebooted truenas.
Came back tried to setup again.
When i tried to install jailmaker it says it's installed already.
I can run jailmaker commands so that part probably works.
I then tried to run the docker script to install that, the script runs, but then it encounters an error
any ideas?
Beta Was this translation helpful? Give feedback.
All reactions