如何在Ubuntu上重新启动Portainer?
我在Ubuntu 22上刚刚安装了Docker和Portainer,当我尝试通过IP:9000访问它时,我会收到一条超时消息:
“新的portainer安装 您的Portainer实例为安全目的而定。要重新启用Portainer实例,您需要重新启动Portainer。
。
文档
更多
有关
信息,请查看我们的 sudo docker run -d -p 9000:9000 -name portainer -restart始终-v/var/run/docker.sock:/var/run/docker.sock-v portainer_data:/data portainer/data portainer/portainer
只有一条消息在我的SSH上说,我将安装另一个我不需要的Portainer。
在YouTube教程上,他们在安装后立即打开IP,在超时错误中。
有线索吗?
I am on Ubuntu 22 have just installed Docker and Portainer, when I try to access it via IP:9000, I get a timeout message:
"New Portainer installation
Your Portainer instance timed out for security purposes. To re-enable your Portainer instance, you will need to restart Portainer.
For further information, view our documentation."
At portainer.io forum people recomend the a command:
sudo docker start portainer
No result.
Also repeating the commnad:
sudo docker run -d -p 9000:9000 --name portainer --restart always -v /var/run/docker.sock:/var/run/docker.sock -v portainer_data:/data portainer/portainer
Only got a message on my SSH saying I would install another portainer, which I don't need.
On youtube tutorials, they open the IP immediately after installation, whithout the timeout bug.
Any clue?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
我跑了:
它奏效了。
I ran:
and it worked.
首先停止Portainer
Docker停止Portainer
启动Portainer,再次
docker start portainer
原因是我不知道,当我刚重新启动Portainer时,提示(请参阅上面的屏幕截图)仍然持续。
First stop portainer
docker stop portainer
Start portainer, again
docker start portainer
For a reason I do not know, when I just restarted portainer, the prompt (see screenshot above) still persisted.
Docker停止容器ID
Docker启动容器ID
docker stop CONTAINER ID
docker start CONTAINER ID
第一步:
Docker PS
验证Portainer ID,然后使用它
,即使它也无法使用,也不担心,重新启动VPS并清洁浏览器的缓存。
First step:
docker ps
verify portainer ID then use it
and even it dosen't work, not worries, restart your VPS and clean browser's cache.