Hello,
This weekend I finished configuring most of my personal server ( which is for development and fun so I don't care about security much ).. It was previously working as a nas server with Freenas and had rancher as docker host vm..
Although I wanted to have a full hypervisor with PCI-E passthrough ( NV GT 710 ) for a macOS VM and wanted to port most of the servers I was running in the FreeNAS jail to a docker container. My old Freenas jail had around 14-15 apps working as services.. Some of the services was not supported in Freenas and I created services for them.. It was a complete mess I should say..
Well, this time I started with Proxmox, first I was thinking about creating a Freenas VM and run it under Proxmox but feeling adventureous ( and maybe a bit stupid ) I imported my ZFS pools directly into Proxmox.
After that I created 2 LXC dockers. One for docker containers which I used portainer for that, and another for fileserving. I used turnkey-core for docker, and turnkey-fileserver for the other one. I created CIFS shares under fileserver LXC.
Everything was chugging along nicely until I restarted the proxmox..
TL;DR: Well, the problem was when Proxmox boots, it mounts an NFS share from another machine, and I bind mount this folder to my LXC containers.. Although I realized that LXC containers doesn't wait for this process and the docker containers under LXC using this NFS share folder has this as empty. The LXC itself sees its' contents but docker containers have only an empty folder as volume. When I restarted them, they also saw its' contents. But this is a big problem of course.
So, is there any way for the containers run after NFS mount completes so docker containers see the contents of the NFS share?
This weekend I finished configuring most of my personal server ( which is for development and fun so I don't care about security much ).. It was previously working as a nas server with Freenas and had rancher as docker host vm..
Although I wanted to have a full hypervisor with PCI-E passthrough ( NV GT 710 ) for a macOS VM and wanted to port most of the servers I was running in the FreeNAS jail to a docker container. My old Freenas jail had around 14-15 apps working as services.. Some of the services was not supported in Freenas and I created services for them.. It was a complete mess I should say..
Well, this time I started with Proxmox, first I was thinking about creating a Freenas VM and run it under Proxmox but feeling adventureous ( and maybe a bit stupid ) I imported my ZFS pools directly into Proxmox.
After that I created 2 LXC dockers. One for docker containers which I used portainer for that, and another for fileserving. I used turnkey-core for docker, and turnkey-fileserver for the other one. I created CIFS shares under fileserver LXC.
Everything was chugging along nicely until I restarted the proxmox..
TL;DR: Well, the problem was when Proxmox boots, it mounts an NFS share from another machine, and I bind mount this folder to my LXC containers.. Although I realized that LXC containers doesn't wait for this process and the docker containers under LXC using this NFS share folder has this as empty. The LXC itself sees its' contents but docker containers have only an empty folder as volume. When I restarted them, they also saw its' contents. But this is a big problem of course.
So, is there any way for the containers run after NFS mount completes so docker containers see the contents of the NFS share?