Update docs/tech_docs/OpenWrt.md

This commit is contained in:
2024-04-21 22:30:57 +00:00
parent b3f70828ef
commit 2c53ce6150

View File

@@ -130,10 +130,6 @@ After updating the configuration files:
---
Kali Linux Container (ID: 200):
```bash
pct create 200 /var/lib/vz/template/cache/kali-default-rootfs.tar.xz --unprivileged 1 --arch amd64 --ostype debian --hostname kali-0 --password changeme --tag tools --storage local-lvm --cores 2 --memory 1024 --swap 512 --rootfs local-lvm:1,size=8G --net0 name=eth0,bridge=vmbr0,firewall=1
```
Alpine Container (ID: 300):
```bash
pct create 300 /var/lib/vz/template/cache/alpine-rootfs.tar.xz --unprivileged 1 --arch amd64 --ostype alpine --hostname alpine-0 --password changeme --tag docker --storage local-lvm --cores 2 --memory 1024 --swap 256 --rootfs local-lvm:1,size=8G --net0 name=eth0,bridge=vmbr0,firewall=1
@@ -205,6 +201,19 @@ Save and exit
service sshd restart
```
```bash
apk add docker
```
```bash
rc-service docker start
```
```bash
rc-update add docker default
```
4. Create a system user and add them to the docker group and sudoers:
```bash
@@ -229,14 +238,11 @@ Save and exit.
5. Start and enable the Docker service:
```bash
rc-update add docker default
```
```bash
service docker start
```
```bash
docker run hello-world
```
Kali Linux Container (ID: 200):
```bash
pct create 200 /var/lib/vz/template/cache/kali-default-rootfs.tar.xz --unprivileged 1 --arch amd64 --ostype debian --hostname kali-0 --password changeme --tag tools --storage local-lvm --cores 2 --memory 1024 --swap 512 --rootfs local-lvm:1,size=8G --net0 name=eth0,bridge=vmbr0,firewall=1
```