Portainer is a docker container that provides a GUI for managing other docker containers. Below is the code to install and run portainer (assuming you have docker already installed).
docker volume create portainer_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-ce;