Description
Portainer is a web-based Docker management interface that allows users to easily manage their Docker containers, networks, and volumes. It provides a simple and intuitive way to view and interact with your Docker environment.
Installation
- Create the Portainer server database:
docker volume create portainer_data
- Download and install Portainer-CE
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
Things I’ve Learned
- To update the container’s name in the yaml file, use the
container_name:variable - If a stack is unable to be deleted, it’s likely because the
/var/lib/docker/volumes/portiner_data/_data/composefile is missing. You’ll have to recreate that numbered file and a docker-compose.yml in the directory in order to delete the stack. - After Setup remove the 8000 port bind
docker run -d -p 9443:9443 --name portainer --restart=always -v /var/run/docker.sock:/var/run/docker.sock -v portainer_data:/data portainer/portainer-ce:latest
See also:
- Setup automatic updates with [[Watchtower]] or [[Shepherd]].