Jail Equivalent to DockerFile?

Status
Not open for further replies.

TheEmpty

Cadet
Joined
Jul 25, 2018
Messages
6
Someone on #freeBSD (on freenode) mentioned that the equivalent for DockerFile would be "jail.conf" but I haven't been able to find much on it. Does anyone have a sample jail.conf or more info on it? I basically want to create my own "plugins" so that I can run it on a local and remote FreeNAS install with a single item to maintain.
 

kdragon75

Wizard
Joined
Aug 7, 2016
Messages
2,457
Docker and jails use the same general concept for running isolated software but that's about where it ends. Docker is more than just a way to run containers, its a full ecosystem that includes a fair bit of automation out of the box. iocage on FreeBSD offers some of this but there is still not a registry of pre built images that you can layer like you can with docker. FreeNASs new plugin system gives you some of the same options as a plugin is now a list of packages that automatically install. I am not familer with how it al works as have never looked into it.
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,700
You could view the pkg.json (as mentioned indirectly by @kdragon75 ) as the sort-of dockerfile.

You can see some great examples of them as part of the instructions in the resource for building iocage jails:

https://forums.freenas.org/index.ph...lidarr-jackett-ombi-transmission-organizr.58/

As already indicated, it's by no means the same thing and will probably not do all of what you want... perhaps you want docker? (those of us who tinkered eagerly with it in FreeNAS 10/Corral are with you, but we'll all just have to cry about it quietly as the magic of filesystem integration is a passing dream)
 
Status
Not open for further replies.
Top