Created
February 7, 2018 17:05
-
-
Save benyanke/4e973806844b1f7474b2b13c561ffef2 to your computer and use it in GitHub Desktop.
Portainer Start Script
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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