Greenbone Community 部署
一、Hardware Requirements
Minimal:
- CPU Cores: 2
- andom-Access Memory: 4GB
- Hard Disk: 20GB free
Recommended:
- CPU Cores: 4
- Random-Access Memory: 8GB
- Hard Disk: 60GB free
二、 Prerequisites
install curl
yum install curl -y
sudo apt install curl -y
install docker
yum install -y yum-utils
yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
yum install docker-ce docker-ce-cli containerd.io
sudo apt-get install ca-certificates curl gnupg
sudo install -m 0755 -d /etc/apt/keyrings
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg
sudo chmod a+r /etc/apt/keyrings/docker.gpg
echo \ |
sudo apt install docker.io
install docker-compose
yum install python3-pip -y
python3 -m pip install --user docker-compose
sudo apt install python3 python3-pip -y
python3 -m pip install --user docker-compose
三、 SET UP
Docker Compose File
|
Downloading the Greenbone Community Containers
docker-compose -f $DOWNLOAD_DIR/docker-compose.yml -p greenbone-community-edition pull
Starting the Greenbone Community Containers
docker-compose -f $DOWNLOAD_DIR/docker-compose.yml -p greenbone-community-edition up -d
Show log messages of all services from the running containers
docker-compose -f $DOWNLOAD_DIR/docker-compose.yml -p greenbone-community-edition logs -f