n8n部署
·
我的配置
{
"registry-mirrors": [
"https://docker.1ms.run",
"https://docker.m.ixdev.cn",
"https://hub.rat.dev",
"http://hub-mirror.c.163.com",
"https://mirrors.tuna.tsinghua.edu.cn",
"http://hub-mirror.c.163.com",
"https://mirrors.tuna.tsinghua.edu.cn",
"https://mirrors.tuna.tsinghua.edu.cn",
"http://mirrors.sohu.com",
"https://ustc-edu-cn.mirror.aliyuncs.com",
"https://ccr.ccs.tencentyun.com",
"https://docker.m.daocloud.io",
"https://docker.awsl9527.cn"
]
}
docker拉不下来
解决办法
docker run -it --rm --name n8n -p 5678:5678 -v n8n_data:/home/node/.n8n n8nio/n8n
不过需要注意的是,由于使用了–rm参数,容器在停止后会自动删除,所以每次执行该命令都会创建一个全新的容器。
如果你希望保留容器的状态,以便下次启动时继续使用,可以去掉–rm参数,并且在容器停止后,使用docker start n8n命令来启动容器。即第一次启动时使用命令:
docker run -it --name n8n -p 5678:5678 -v n8n_data:/home/node/.n8n n8nio/n8n
后续启动时使用命令:
docker start n8n
其他方式
转载https://zhuanlan.zhihu.com/p/1949557248557842657
# 创建代理文件夹
sudo mkdir -p /etc/systemd/system/docker.service.d
# 添加代理文件
sudo tee /etc/systemd/system/docker.service.d/http-proxy.conf <<EOF
[Service]
Environment="HTTP_PROXY=http://127.0.0.1:7890"
Environment="HTTPS_PROXY=http://127.0.0.1:7890"
Environment="NO_PROXY=localhost,127.0.0.1"
EOF
重启
sudo systemctl daemon-reexec
sudo systemctl daemon-reload
sudo systemctl restart docker
更多推荐



所有评论(0)