zpool not working in jail

Status
Not open for further replies.

Semus

Cadet
Joined
May 18, 2017
Messages
3
Please tell me how you can install the docker in the yail (freeNAS 9,10). I have a lot of containers that need to be placed in this jail. I made a jail. I'm root. I enter the following commands:

Code:
# pkg install docker-freebsd ca_root_nss
# dd if=/dev/zero of=/usr/local/dockerfs bs=1024K count=4000
# zpool create -f pool /usr/local/dockerfs


Reply:
Code:
cannot create 'pool': permission denied


Why "permission denied"? How to fix it?
 
D

dlavigne

Guest
I think you want to create a dataset using Volume Manager then Add Storage in the jail that points that dataset to /usr/local/dockerfs.
 

Semus

Cadet
Joined
May 18, 2017
Messages
3
Yes. I want that in JAIL there will be a device of "pool"
Then I execute the command:
Code:
zfs create -o mountpoint=/usr/docker zroot/docker

And mount the device. How can I get rid of the problem with permissions?
 
D

dlavigne

Guest
Which how-to are you following? I'm pretty sure you instead have to make a dataset (or perhaps a zvol) in Volume Manager and point a storage to it...
 
Status
Not open for further replies.
Top