summaryrefslogtreecommitdiffstats
path: root/scripts/utils
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/utils')
-rwxr-xr-xscripts/utils/create_docker_network3
-rwxr-xr-xscripts/utils/create_docker_volume4
2 files changed, 7 insertions, 0 deletions
diff --git a/scripts/utils/create_docker_network b/scripts/utils/create_docker_network
new file mode 100755
index 0000000..861ce22
--- /dev/null
+++ b/scripts/utils/create_docker_network
@@ -0,0 +1,3 @@
+#!/bin/bash
+
+sudo docker network create -d bridge $1
diff --git a/scripts/utils/create_docker_volume b/scripts/utils/create_docker_volume
new file mode 100755
index 0000000..62a27cd
--- /dev/null
+++ b/scripts/utils/create_docker_volume
@@ -0,0 +1,4 @@
+#!/bin/bash
+
+sudo mkdir /var/opt/$1
+sudo docker volume create --driver local --opt type=none --opt device=/var/opt/$1 --opt o=bind $1