This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| kvm_and_docker_on_one_host [2019/07/26 16:48] – herwarth | kvm_and_docker_on_one_host [2020/04/12 09:10] (current) – [ZFS] herwarth | ||
|---|---|---|---|
| Line 198: | Line 198: | ||
| Now we have the rule added. Make it persistent. First install iptables-persistent | Now we have the rule added. Make it persistent. First install iptables-persistent | ||
| - | apt install iptables-persistent. | + | apt install iptables-persistent |
| It will tell you it created rules in: / | It will tell you it created rules in: / | ||
| Check the rules.v4 file for the masquerade rule | Check the rules.v4 file for the masquerade rule | ||
| Line 224: | Line 224: | ||
| # Completed on Fri Jul 26 18:19:47 2019 | # Completed on Fri Jul 26 18:19:47 2019 | ||
| </ | </ | ||
| + | ====ZFS==== | ||
| + | When you have a ZFS pool you want to use for storage | ||
| + | < | ||
| + | systemctl stop docker | ||
| + | rm -rf / | ||
| + | zfs create -o mountpoint=/ | ||
| + | </ | ||
| + | <code - / | ||
| + | { | ||
| + | " | ||
| + | " | ||
| + | } | ||
| + | </ | ||
| + | < | ||
| + | systemctl start docker | ||
| + | </ | ||
| + | Check with docker info | ||
| + | < | ||
| + | < | ||
| + | Client: | ||
| + | Debug Mode: false | ||
| + | Server: | ||
| + | | ||
| + | Running: 0 | ||
| + | Paused: 0 | ||
| + | Stopped: 0 | ||
| + | | ||
| + | | ||
| + | | ||
| + | Zpool: data | ||
| + | Zpool Health: ONLINE | ||
| + | Parent Dataset: data/docker | ||
| + | Space Used By Parent: 98304 | ||
| + | Space Available: 965292744704 | ||
| + | Parent Quota: no | ||
| + | Compression: | ||
| + | . | ||
| + | . | ||
| + | . | ||
| + | </ | ||
| ====Networks==== | ====Networks==== | ||
| In our example we are not going to use containers in the routed subnet bridge called internet | In our example we are not going to use containers in the routed subnet bridge called internet | ||