Skip to content

Instantly share code, notes, and snippets.

@benyanke
Created February 7, 2018 17:05
Show Gist options
  • Select an option

  • Save benyanke/4e973806844b1f7474b2b13c561ffef2 to your computer and use it in GitHub Desktop.

Select an option

Save benyanke/4e973806844b1f7474b2b13c561ffef2 to your computer and use it in GitHub Desktop.
Portainer Start Script
#!/bin/bash
sudo docker stop "portainer";
sudo docker rm "portainer";
sudo docker run -d \
--publish 9000:9000 \
--label "hiddden" \
--volume /var/run/docker.sock:/var/run/docker.sock \
--volume /opt/portainer/data:/data \
--name "portainer" \
--restart "always" \
portainer/portainer \
-H unix:///var/run/docker.sock
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment