1panel安装openresty时报错:stderr: service "openresty" has no container to start

1Panel版本:v1.10.6-lts
浏览器:Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/112.0.0.0 Safari/537.36 QuarkPC/1.3.5.36

尝试过重装了,但是docker界面就是没有openresty的容器
错误:stderr: service “openresty” has no container to start

截图:


**本人半路小白,感谢耐心回答我的问题!!

昨天我也是这样的

那解决了吗?真心求教

应用商店里面安装openresty这个应用

解决了吗?真心求教

是不是在1panel上装的openresty,如果这样没装成功,可以去服务器上看一下报错日志,大概率是容器网络问题导致的container没创建成功,重启一下network和docker试试看

看了日志:

May 6 10:41:52 ubuntu dockerd[1198]: time=“2024-05-06T10:41:52.518243000-04:00” level=info msg=“Attempting next endpoint for pull after error: failed to register layer: Error processing tar file(exit status 1): archive/tar: invalid tar header”

这样的话怎么解决啊 :frowning_with_open_mouth: :frowning_with_open_mouth:

我尝试更改了一下docker镜像源

{
“registry-mirrors”: [
“https://dockerproxy.com”,
“https://hub-mirror.c.163.com”,
“https://mirror.baidubce.com”,
“https://ccr.ccs.tencentyun.com”
]
}

然后呢……

May 6 11:26:19 ubuntu dockerd[2699]: time=“2024-05-06T11:26:19.544468900-04:00” level=info msg=“Attempting next endpoint for pull after error: error pulling image configuration: received unexpected HTTP status: 502 Bad Gateway”
May 6 11:26:23 ubuntu dockerd[2699]: time=“2024-05-06T11:26:23.137485700-04:00” level=info msg=“Attempting next endpoint for pull after error: manifest unknown: manifest unknown”
May 6 11:26:23 ubuntu dockerd[2699]: time=“2024-05-06T11:26:23.726159800-04:00” level=info msg=“Attempting next endpoint for pull after error: received unexpected HTTP status: 502 Bad Gateway”
May 6 11:26:23 ubuntu dockerd[2699]: time=“2024-05-06T11:26:23.930178900-04:00” level=info msg=“Attempting next endpoint for pull after error: Head https://ccr.ccs.tencentyun.com/v2/1panel/openresty/manifests/1.21.4.3-2-1-focal: error parsing HTTP 404 response body: invalid character ‘i’ looking for beginning of value: "image repo not found"”
May  6 11:27:49 ubuntu dockerd[2699]: time="2024-05-06T11:27:49.806383900-04:00" level=info msg="Attempting next endpoint for pull after error: failed to register layer: Error processing tar file(exit status 1): archive/tar: invalid tar header"

好像还是不行啊~怎么办

主要原因是镜像拉取出了问题导致安装失败,其实容器的yml文件已经配置。
(1)打开安装目录
WXK%)P1%T5@S$5HAI)IU7
(2)查看镜像版本


我的镜像版本:1panel/openresty:1.21.4.3-2-2-focal

(3)命令行下手动拉取镜像,执行命令
sudo docker pull 1panel/openresty:1.21.4.3-2-2-focal
(4)拉取镜像后重建容器即可
YNDG8G7V1SL25M6M6NHY6MD

2 个赞

我也遇到这个问题 镜像拉取=失败

感谢,问题已完美解决

怎么解决的,我一个应用都安装不了呢

sudo docker pull 1panel/openresty:1.21.4.3-3-3-focal
1.21.4.3-3-3-focal: Pulling from 1panel/openresty
Get “https://registry-1.docker.io/v2/”: context deadline exceeded (Client.Timeout exceeded while awaiting headers)