2022-11-20 unraid docker配置

1.

网心云镜像
docker run -d --name=wxedge --restart=always --privileged --net=host --tmpfs /run --tmpfs /tmp -v /wxedge:/storage:rw registry.hub.docker.com/onething1/wxedge
迅雷镜像
docker run --privileged=true --net=host --name xunlei -p 88:2345 -v /data/downloads:/xunlei/downloads -v /docker/xunlei:/xunlei/data cnk3x/xunlei:latest
homeassistant镜像
docker run -d --name homeassistant --privileged --restart=unless-stopped -e TZ=Asia/Shanghai -v /docker/homeassistant:/config -v /run/dbus:/run/dbus:ro --network=host homeassistant/home-assistant:latest

2.配置系统代理

2.1配置局域网的代理:

export http_proxy="http://192.168.31.9:7890/" ;export https_proxy="http://192.168.31.9:7890/"

2.2取消变量:

unset http_proxy ; unset https_proxy

3.docker pull 配置代理

3.1添加如下目录:

mkdir -p /etc/systemd/system/docker.service.d

3.2配置docker文件添加内容:

cat << EOF > /etc/systemd/system/docker.service.d/http_proxy.conf 

[Service] 
Environment="HTTP_PROXY=http://192.168.31.9:7890"
Environment="HTTPS_PROXY=http://192.168.31.9:7890"

EOF

3.3重启docker

/etc/rc.d/rc.docker restart

3.4检查是否配置成功

docker info |grep http

4.docker源配置

cat << EOF >/etc/docker/daemon.json
{
"registry-mirrors": ["http://f1361db2.m.daocloud.io"]
}
EOF

5.go文件配置:

export UNRAID_GUID=090C-1000-0355-716050001350
export UNRAID_NAME=key
export UNRAID_DATE=1666010213
export UNRAID_VERSION=Pro
LD_PRELOAD=/boot/config/BTRS.key /usr/local/sbin/emhttp &

docker run -itd --privileged=true --name centos3 centos /usr/sbin/init
————————————————
root@localhost:# /usr/local/emhttp/plugins/dynamix.docker.manager/scripts/docker run -d --name='stream12' --net='host' --privileged=true -e TZ="America/Los_Angeles" -e HOST_OS="Unraid" -e HOST_HOSTNAME="Tower" -e HOST_CONTAINERNAME="stream12" -e 'TCP_PORT_222'='222' -l net.unraid.docker.managed=dockerman -itd 'quay.io/centos/centos:stream9' /usr/sbin/init

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容