如何在Ubuntu上重新启动Portainer?

发布于 2025-02-08 05:46:43 字数 637 浏览 3 评论 0原文

我在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:

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

掀纱窥君容 2025-02-15 05:46:43

我跑了:

sudo docker restart portainer

它奏效了。

I ran:

sudo docker restart portainer

and it worked.

有木有妳兜一样 2025-02-15 05:46:43
  1. 首先停止Portainer

    Docker停止Portainer

  2. 启动Portainer,再次

    docker start portainer

原因是我不知道,当我刚重新启动Portainer时,提示(请参阅上面的屏幕截图)仍然持续。

  1. First stop portainer

    docker stop portainer

  2. 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.

送君千里 2025-02-15 05:46:43

Docker停止容器ID
Docker启动容器ID

docker stop CONTAINER ID
docker start CONTAINER ID

深海不蓝 2025-02-15 05:46:43

第一步:Docker PS

验证Portainer ID,然后使用它

docker stop CONTAINER_ID  
docker start CONTAINER_ID

,即使它也无法使用,也不担心,重新启动VPS并清洁浏览器的缓存。

First step: docker ps

verify portainer ID then use it

docker stop CONTAINER_ID  
docker start CONTAINER_ID

and even it dosen't work, not worries, restart your VPS and clean browser's cache.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文