This repository has been archived on 2023-05-02. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
neo/utils/setup.sh
2022-12-04 22:30:49 +01:00

17 lines
No EOL
355 B
Bash

#!/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