segregation+tool
This commit is contained in:
parent
4bff577418
commit
45a751e736
7 changed files with 302 additions and 24 deletions
17
utils/setup.sh
Normal file
17
utils/setup.sh
Normal file
|
@ -0,0 +1,17 @@
|
|||
#!/bin/bash
|
||||
|
||||
fatal() {
|
||||
echo "FATAL: $@"
|
||||
exit 1
|
||||
}
|
||||
|
||||
echo "# installing docker"
|
||||
sudo apt update || fatal "something went wrong"
|
||||
sudo apt install docker* || fatal "something went wrong"
|
||||
|
||||
echo "# check groups"
|
||||
groups | grep docker || sudo usermod $USER -aG docker
|
||||
fatal "please relog to enter docker group"
|
||||
|
||||
echo "# network"
|
||||
docker network create proxy
|
Reference in a new issue