Skip to content

How to update portainer agents #246

Answered by MickLesk
pippo73 asked this question in Q&A
Discussion options

You must be logged in to vote

portainer:
docker stop portainer
docker rm portainer
docker pull portainer/portainer-ce:2.21.4
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:2.21.4

portainer_agent:
docker stop portainer_agent
docker rm portainer_agent
docker pull portainer/agent:2.21.4
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.21.4

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@pippo73
Comment options

Answer selected by pippo73
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants