Notes to Self

Alex Sokolsky's Notes on Computers and Programming

Portainer

I use portainer to run docker images.

See also other portainer on Proxmox notes

Install

To install portainer on ubuntu I followed instructions, as root:

docker volume create portainer_data
docker run -d -p 8000:8000 -p 9443:9443 --name portainer --restart=always \
    -v /var/run/docker.sock:/var/run/docker.sock -v portainer_data:/data \
    portainer/portainer-ce:latest

The GUI is now available at https://exi:9443.

Upgrade

docker stop portainer
docker rm portainer
docker run -d -p 8000:8000 -p 9443:9443 --name portainer --restart=always \
    -v /var/run/docker.sock:/var/run/docker.sock -v portainer_data:/data \
    portainer/portainer-ce:latest