init and start portainer
This commit is contained in:
parent
940559a71d
commit
9529e16ab6
6
scripts/makeportainer.sh
Executable file
6
scripts/makeportainer.sh
Executable file
@ -0,0 +1,6 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
docker volume create portainer_data
|
||||||
|
docker run -d -p 9000:9000 -v /var/run/docker.sock:/var/run/docker.sock -v portainer_data:/data --name portainer --restart always portainer/portainer
|
||||||
|
docker run -d -p 9001:9001 -v /var/run/docker.sock:/var/run/docker.sock -v /var/lib/docker/volumes:/var/lib/docker/volumes --name portainer_agent --restart always portainer/agent
|
||||||
|
|
||||||
Loading…
Reference in New Issue
Block a user