备份
cp ./registries.conf ./registries.conf.bk
配置
/etc/containers/registries.conf
unqualified-search-registries = ["docker.io"]
[[registry]]
prefix = "docker.io"
location = "docker.m.daocloud.io"
insecure = true
当前可用镜像:
- docker.m.daocl[......]
备份
cp ./registries.conf ./registries.conf.bk
配置
/etc/containers/registries.conf
unqualified-search-registries = ["docker.io"]
[[registry]]
prefix = "docker.io"
location = "docker.m.daocloud.io"
insecure = true
当前可用镜像:
除了常见的直接QEmu方法外,也可以使用这个Docker镜像,里面内置了QEmu + 树莓派的镜像
docker run -it ghcr.io/carlosperate/qemu-rpi-os-lite:bullseye-2023-05-03
更多版本镜像可以参考repo:https://github.com/carlosperate/docker-qemu-rpi-os/tree/main[......]
1 安装、启用
# 启动防火墙
systemctl start firewalld
# 加入开机自自动
systemctl enable firewalld
# 停止防火墙
systemctl stop firewalld
2 基本查看
# 查看状态 / 端口
firewall-cmd --state
firewall-cmd --list-all
3 禁用 / 放行
# 添加端口(记得reload)
firewall-cmd --zone=public --[......]
docker部分
#!/bin/bash
NAME="bitwarden"
PUID="1000"
PGID="1000"
PORT1="10080"
PORT2="13012"
VOLUME="yourpath"
mkdir -p $VOLUME
docker ps -q -a --filter "name=$NAME" | xargs -I {} docker rm -f {}
docker run \
--env PUID=$PUID \[......]
服务端性能压测时,在客户端侧经常遇到两个问题:
可以通过docker的方式,突破这两个限制
#!/bin/bash
docker run -v $(pwd):/benchmark-client.bin -it ubuntu:20.04 /app/benchmark-client.bin
如上,我们启用若干个个docker,每个都[......]