Guía básica de Docker
docker stop portainer
docker rm portainer
docker image ls | grep portainer
Make sure the containter is stopped and removed, then take that ID from above, and:
docker image rm xxxxxxxxxxxx
Do that for each image listed for portainer. DO NOT DELETE portainer_data volume unless you want to TOTALLY start over. You will LOSE your configuration data if you do that.
Now do a:
docker pull portainer/portainer
Then create and start the replacement container using your old data:
docker run -d -p 8000:8000 -p 9000:9000 --name=portainer --restart=always -v /var/run/docker.sock:/var/run/docker.sock -v portainer_data:/data portainer/portainer
#=== Lista las imágenes de Docker, filtra por los IDs y elimina las imágenes en función del ID:
docker images | awk 'NR!=1 {print $1}' | xargs docker rmi
Actualizado el