Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to restart Portainer on Ubuntu?

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?

like image 368
Debbie Avatar asked Sep 10 '25 17:09

Debbie


1 Answers

I ran:

sudo docker restart portainer

and it worked.

like image 105
Debbie Avatar answered Sep 13 '25 06:09

Debbie