# Update Portainer to 2.20

**URL:** https://dietpi.com/forum/t/update-portainer-to-2-20/19878
**Category:** General Discussion
**Created:** [11 April 2024 18:19 UTC](https://dietpi.com/forum/t/update-portainer-to-2-20/19878 "2024-04-11T18:19:36Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![Lurchi87](https://dietpi.com/forum/user_avatar/dietpi.com/lurchi87/32/4565_2.png) [@Lurchi87](https://dietpi.com/forum/u/Lurchi87)
#### Post date: [11 April 2024 18:19 UTC](https://dietpi.com/forum/t/update-portainer-to-2-20/19878/1 "2024-04-11T18:19:36Z")

</div>

Dear all,

I am currently using portainer via the dietpi standard package manager together with docker 26. I just discovered that i am unable to enter the console of my docker containers via portainer. After some google research it turns out that this is a known issue and that an update to 2.20 should solve it. Unfortunately I was undable to figure out a way how to update portainer as the built-in packet manager does not show any updates.  
Could anyone please help me 🙂  
Thanks a lot in advance and best regards  
Lurchi

---

<div class="post-metadata">

### Author: ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)
#### Post date: [11 April 2024 18:59 UTC](https://dietpi.com/forum/t/update-portainer-to-2-20/19878/2 "2024-04-11T18:59:38Z")

</div>

This version has not been released. You can check Portainer GitHub for version available [GitHub - portainer/portainer: Making Docker and Kubernetes management easy.](https://github.com/portainer/portainer?tab=readme-ov-file#latest-version)

---

<div class="post-metadata">

### Author: ![Lurchi87](https://dietpi.com/forum/user_avatar/dietpi.com/lurchi87/32/4565_2.png) [@Lurchi87](https://dietpi.com/forum/u/Lurchi87)
#### Post date: [12 April 2024 10:00 UTC](https://dietpi.com/forum/t/update-portainer-to-2-20/19878/3 "2024-04-12T10:00:21Z")

</div>

Thanks for your fast reply. I am a little bit confused: According to docker hub, the version is already available: [Docker](https://hub.docker.com/layers/portainer/portainer-ce/2.20.1/images/sha256-a311e771fbe2b6e9830f835f0dad884b4e231badfbec840b2f568001c6030777?context=explore)

My confusion is mainly driven by the point that I am not away how to run an update of portainer: Do I have to update the docker container of portainer or is the update handled via the packet manager?

Thanks a lot!

---

<div class="post-metadata">

### Author: ![Jappe](https://dietpi.com/forum/user_avatar/dietpi.com/jappe/32/1788_2.png) [@Jappe](https://dietpi.com/forum/u/Jappe)
#### Post date: [12 April 2024 10:02 UTC](https://dietpi.com/forum/t/update-portainer-to-2-20/19878/4 "2024-04-12T10:02:52Z")

</div>

Looks like the counter shows wrong version, 2.20 was released 3 weeks ago and 2.20.1 a week ago:  
[https://github.com/portainer/portainer/releases/tag/2.20.1](https://github.com/portainer/portainer/releases/tag/2.20.1)

For an update you can just reinstall:  
[https://dietpi.com/docs/software/programming/#\_\_tabbed\_5\_2](https://dietpi.com/docs/software/programming/#__tabbed_5_2)

---

<div class="post-metadata">

### Author: ![Lurchi87](https://dietpi.com/forum/user_avatar/dietpi.com/lurchi87/32/4565_2.png) [@Lurchi87](https://dietpi.com/forum/u/Lurchi87)
#### Post date: [12 April 2024 10:38 UTC](https://dietpi.com/forum/t/update-portainer-to-2-20/19878/5 "2024-04-12T10:38:02Z")

</div>

Thanks for the link, unfortunately it did not work. I am getting the following error message during the installation process:

> docker: Error response from daemon: Conflict. The container name “/portainer” is already in use by container “4d81769d6de12451750600d17de7d3e9a2023ff51c97f7570cba01965da012”. You have to remove (or rename) that container to be able to reuse that name.

Should I rather follow the following instruction: [Updating on Docker Standalone | 2.19 | Portainer Documentation](https://docs.portainer.io/start/upgrade/docker)

Thanks for your support!

---

<div class="post-metadata">

### Author: ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)
#### Post date: [12 April 2024 10:53 UTC](https://dietpi.com/forum/t/update-portainer-to-2-20/19878/6 "2024-04-12T10:53:17Z")

</div>

Sometimes Portainer is restarting itself, therefore the image/container is in use.

Does manually stopping of the container is working?

```auto
docker stop portainer

```

Does this stop the container? Or will it be restarted again?

But this will not change anything to pull a new container. I don’t know why but on DockerHub, the portainer image having the `latest` tag is 4 month old. [DockerHub latest image](https://hub.docker.com/r/portainer/portainer-ce/tags?page=&page_size=&ordering=&name=latest)

It seems they have a new image but did not marked it as latest available. Therefore Portainer itself did not detect a new version, GitHub is not showing one and the image pulled is as well not the new one.

---

<div class="post-metadata">

### Author: ![Lurchi87](https://dietpi.com/forum/user_avatar/dietpi.com/lurchi87/32/4565_2.png) [@Lurchi87](https://dietpi.com/forum/u/Lurchi87)
#### Post date: [19 April 2024 14:34 UTC](https://dietpi.com/forum/t/update-portainer-to-2-20/19878/7 "2024-04-19T14:34:45Z")

</div>

Sorry for the delayed response but i unfortunately got sick :-/

So I just tried the following things:

- Set the restart policy for the portainer container to “unless stopped” (it was set to “always” before)
- Stopped the container using the command “docker stop portainer”
- The run the update command again “dietpi-software reinstall 185”

Unfortunately the result was the same as above (… portainer already in use…)

After some frustration I tried the other instruction which I posted above (Updating to 2.19) und used the “2.20.1” tag instead of “latest” aaaaaannnnddd it worked 🥳

Thanks for your help guys!

---

<div class="post-metadata">

### Author: ![system](https://dietpi.com/forum/uploads/default/original/1X/7e1021de2213860bce185915ce2c1786e56490ec.png) [@system](https://dietpi.com/forum/u/system)
#### Post date: [18 July 2024 14:34 UTC](https://dietpi.com/forum/t/update-portainer-to-2-20/19878/8 "2024-07-18T14:34:59Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
