2022-11-20 unraid docker配置

1.网心云镜像

docker run -d --name=wxedge --restart=always --privileged --net=host --tmpfs /run --tmpfs /tmp -v /mnt/user/appdata/wangxinyun:/storage:rw registry.hub.docker.com/onething1/wxedge

2.配置系统代理

2.1配置局域网的代理:

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

2.2取消变量:

unset http_proxy ; unset https_proxy

3.docker pull 配置代理

3.1添加如下目录:

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

3.2配置文件添加内容:

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

[Service] 
Environment="HTTP_PROXY=http://192.168.0.2:7890" 
Environment="HTTPS_PROXY=http://192.168.0.2: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

你可能感兴趣的:(2022-11-20 unraid docker配置)