An apple a day keeps the doctor away !

0%

此篇文章被加密,需要输入密码查看
阅读全文 »

配置

1
2
3
4
5
lxc.apparmor.profile: unconfined
lxc.cgroup.devices.allow: a
lxc.cap.drop:
lxc.cgroup2.devices.allow: c 10:200 rwm
lxc.hook.autodev: sh -c "modprobe tun; cd ${LXC_ROOTFS_MOUNT}/dev; mkdir net; mknod net/tun c 10 200; chmod 0666 net/tun"

以上

docker-headscale

1
2
3
4
mkdir -p /home/docker/headscale/config && \
mkdir -p /home/docker/headscale/data && \
touch /home/docker/headscale/data/db.sqlite && \
wget https://github.com/juanfont/headscale/raw/v0.22.3/config-example.yaml -O /home/docker/headscale/config/config.yaml
阅读全文 »

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
root@OpenWrt:~# cat /etc/config/dockerd 

config globals 'globals'
option log_level 'warn'
option auto_start '1'
option alt_config_file '/etc/docker/daemon.json'
option data_root '/mnt/mmcblk2p4/docker/'
option bip '172.31.0.1/24'
option iptables 'true'

config dockerman 'dockerman'
option socket_path '/var/run/docker.sock'
option status_path '/tmp/.docker_action_status'
option debug 'false'
option debug_path '/tmp/.docker_debug'
option remote_endpoint '0'
list ac_allowed_interface 'br-lan'

使用以下命令限制docker的日志大小与日志数量

1
--log-driver=json-file --log-opt max-size=1m --log-opt max-file=1