Deployment
First, create the volume that Portainer Server will use to store its database:
- docker volume create portainer_data
Then, download and install the Portainer Server container:
- docker run -d -p 8000:8000 -p 9443:9443 -p 9000:9000 —name portainer —restart=always -v /var/run/docker.sock:/var/run/docker.sock -v portainer_data:/data portainer/portainer-ee:latest
Install portainer agent :
- docker run -d -p 9001:9001 —name portainer_agent —restart=always -v /var/run/docker.sock:/var/run/docker.sock -v /var/lib/docker/volumes:/var/lib/docker/volumes portainer/agent:2.16.0