Verified Commit 09432b28 authored by Elias Ojala's avatar Elias Ojala
Browse files

LXD: Share folders

parent f8cbe668
......@@ -79,3 +79,4 @@ Go to `http://pi.hole/admin/settings.php?tab=dns` and set "Upstream DNS Servers"
## Further reading
* [Securing DNS across all of my devices with Pi-Hole + DNS-over-HTTPS + 1.1.1.1](https://scotthelme.co.uk/securing-dns-across-all-of-my-devices-with-pihole-dns-over-https-1-1-1-1/) on scotthelme.co.uk
* [Configuring DNS-Over-HTTPS on Pi-hole](https://docs.pi-hole.net/guides/dns-over-https/) on docs.pi-hole.net
......@@ -20,4 +20,20 @@ sudo lxc config device add haproxy haproxy-80 proxy listen=tcp:0.0.0.0:80 connec
### Further reading
* [https://discuss.linuxcontainers.org/t/forward-port-80-and-443-from-wan-to-container/2042/2](https://discuss.linuxcontainers.org/t/forward-port-80-and-443-from-wan-to-container/2042/2)
\ No newline at end of file
* [https://discuss.linuxcontainers.org/t/forward-port-80-and-443-from-wan-to-container/2042/2](https://discuss.linuxcontainers.org/t/forward-port-80-and-443-from-wan-to-container/2042/2)
## Share folders
```bash
sudo lxc config device add CONTAINER_NAME SHARE_NAME disk path=PATH_ON_GUEST source=PATH_ON_HOST
```
### Examples
```bash
sudo lxc config device add web01 shared-stats disk path=/var/www/stats source=/var/www/stats
```
### Further reading
* [Adding a shared host directory to an LXC/LXD Container](https://askubuntu.com/a/742527) on askubuntu.com
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment