# Build Orignal GreenBone OpenVAS ###### tags: `public`,`build`,`openvas`,`greenbone` ### Link https://hub.docker.com/r/greenbone/openvas-scanner-build https://www.youtube.com/watch?v=2mPOsBVDS2E https://greenbone.github.io/docs/latest/22.4/container/index.html --- #### Chinese Version ## 如何做 ? ### 建立或使用官方docker-compose yml ``` curl -f -L https://greenbone.github.io/docs/latest/_static/docker-compose-22.4.yml -o docker-compose.yml ``` ### Pull orignal的官方docker image - 前往 compose yml 路徑並pull官方docker image ``` docker-compose -f ./docker-compose.yml -p greenbone-community-edition pull ``` It will took 5 mins ### 以image 啟用 container - Docker-compose up the image ``` docker-compose -f ./docker-compose.yml -p greenbone-community-edition up -d ``` - 如果需要紀錄log,可以從這邊看到 ``` docker-compose -f ./docker-compose.yml -p greenbone-community-edition logs -f ``` ### 編輯帳號密碼 - 編輯帳號,請將 <password> 更換為更強的密碼 ``` docker-compose -f ./docker-compose.yml -p greenbone-community-edition \ exec -u gvmd gvmd gvmd --user=admin --new-password=<password> ``` ### 大功告成存取頁面 https://localhost:9392 或是你變更過的docker-compose yml ![](https://hackmd.io/_uploads/HJ6D-T_V2.png) --- #### ENG Version ## How to do ? ### Create or Download yml file ``` curl -f -L https://greenbone.github.io/docs/latest/_static/docker-compose-22.4.yml -o docker-compose.yml ``` ### Pull Docker Image - Go to compose.yml path and pull the image ``` docker-compose -f ./docker-compose.yml -p greenbone-community-edition pull ``` It will took 5 mins ### Start the dokcer - Docker-compose up the image ``` docker-compose -f ./docker-compose.yml -p greenbone-community-edition up -d ``` - Save the log if you need ``` docker-compose -f ./docker-compose.yml -p greenbone-community-edition logs -f ``` ### Edit account & pw - Edit account ``` docker-compose -f ./docker-compose.yml -p greenbone-community-edition \ exec -u gvmd gvmd gvmd --user=admin --new-password=<password> ``` ### Access the page https://localhost:9392 or follow your docker-compose file. ![](https://hackmd.io/_uploads/HJ6D-T_V2.png) --- ![](https://hackmd.io/_uploads/S1I5rEF42.png)