segregation+tool

This commit is contained in:
Didier Slof 2022-12-04 22:30:49 +01:00
parent 4bff577418
commit 45a751e736
Signed by: didier
GPG key ID: 01E71F18AA4398E5
7 changed files with 302 additions and 24 deletions

17
utils/setup.sh Normal file
View 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