On Sat, Dec 08, 2018 at 01:12:08AM -0800, Roy Bernat wrote: > On Friday, 7 December 2018 21:07:31 UTC-5, unman wrote: > > On Fri, Dec 07, 2018 at 08:44:20AM -0800, Roy Bernat wrote: > > > On Monday, 3 December 2018 19:07:56 UTC-5, unman wrote: > > > > On Mon, Dec 03, 2018 at 07:03:47AM -0800, Roy Bernat wrote: > > > > > On Monday, 3 December 2018 08:01:12 UTC-5, unman wrote: > > > > > > On Sun, Dec 02, 2018 at 07:07:28AM -0800, Roy Bernat wrote: > > > > > > > Hi > > > > > > > > > > > > > > > > > > > > > I use this article to create bind-dirs > > > > > > > > > > > > > > i created this file 50_user.conf under > > > > > > > /rw/config/qubes-bind-dirs.d > > > > > > > > > > > > > > with the following > > > > > > > > > > > > > > > > > > > > > binds+=( '/var/lib/docker' ) > > > > > > > binds+=( '/etc/docker' ) > > > > > > > > > > > > > > > > > > > > > for testing i created a folder inside /var/lib/docker called test > > > > > > > and after > > > > > > > > > > > > > > reboot the folder removed . > > > > > > > > > > > > > > what is the mistake ? > > > > > > > > > > > > > > 10x all > > > > > > > Roy > > > > > > > > > > > > > > > > > > > No mistake - you need to reboot and then create the folder. > > > > > > If you look in the "How does it work?" section, you'll see this > > > > > > explained. > > > > > > > > > > in the templateVM ? or in machine i created ? > > > > > > > > > > > > > bind-dirs is used in TemplateBasedVMs to make files/folders that would > > > > otherwise come from the template specific to that qube. > > > > So if you put that conf file in the qube, restart it and then make > > > > changes in /var/lib/docker, and you will see that the changes remain > > > > after rebooting the qube. > > > Thank you for your answer . > > > > > > how can i make persistent in the appvm ? > > > > > > for example i created a appvm for docker . > > > > > > i am downloading images and after reboot the images are not exist because > > > > > > it saved in the /var/lib/docker > > > > > > > > > Thanks > > > > Create that file in the appvm as you have described. > > Reboot the appVM. > > That will make /var/lib/docker persistent in the appVM > > (Test this by inspecting /rw/bind-dirs and confirming that > > var/lib/docker is there.) > > THEN download images and store them in /var/lib/docker. > > Reboot appVM. > > Confirm that images still exist in /var/lib/docker after restart. > > > not working > > i checked again in the template vm > > 50_user.conf > > binds+=( '/var/lib/docker' ) > > in the template vm it is working as you said > > in the appvm it is not working and i cant see the folder > > in /rw/bind-dirs > > thank you foryou help >
Why are you doing this in the template vm? There is nothing in the documentation to suggest that you should put the files in the template. bind-dirs is intended to run in templatebasedVMs to make files that would otherwise disappear on reboot (because they are derived from the template) be permanent. It makes no sense to set it in the template - those files will automatically be permanent across reboots in the appVM. Remove the nind-dirs files from the template, and set them up in the apppVM. Please check that you have followed the instructions exactly and set configuration in the appVM. unman -- You received this message because you are subscribed to the Google Groups "qubes-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to qubes-users+unsubscr...@googlegroups.com. To post to this group, send email to qubes-users@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/qubes-users/20181208122253.regc4gzradi5roby%40thirdeyesecurity.org. For more options, visit https://groups.google.com/d/optout.