Skip to content

Instantly share code, notes, and snippets.

@hatamiarash7
Created January 28, 2020 14:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hatamiarash7/0abe4c4815705931f2ae0119e38dc824 to your computer and use it in GitHub Desktop.
Save hatamiarash7/0abe4c4815705931f2ae0119e38dc824 to your computer and use it in GitHub Desktop.
Run Portainer agent without docker swarm
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment