# Updating feeds in Portainer

**URL:** <https://forum.greenbone.net/t/updating-feeds-in-portainer/19430>\
**Category:** Community Containers\
**Created:** [October 17, 2024, 9:18am UTC](https://forum.greenbone.net/t/updating-feeds-in-portainer/19430 "2024-10-17T09:18:55Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![Disrupt2471](https://forum.greenbone.net/letter_avatar/disrupt2471/32/6_449c533f586939b6e5f246632a46421f.png) [@Disrupt2471](https://forum.greenbone.net/u/Disrupt2471)\
**Post date:** [October 17, 2024, 9:18am UTC](https://forum.greenbone.net/t/updating-feeds-in-portainer/19430/1 "2024-10-17T09:18:55Z")

</div>

I have built out my Greenbone Community Edition stack in Portainer and it works great. I can see all the containers, log into the web and run scans. All that data is persistent and functioning as it should. The only thing I can’t figure out is how to get the feeds updated. I have tried to delete the volumes and let the stack re-create them but it doesn’t seem to actually update any of the feeds. I have tried to recreate the containers, pull new versions and still no feed updates. Is there something I would need to add to the .yml file to get the feeds to update? I have run this from a dedicated VM running docker compose and can use those commands to update feeds, but not sure where I can use them to update the feeds in the Portainer environment.

---

<div class="post-metadata">

**Author:** ![rippledj](https://forum.greenbone.net/user_avatar/forum.greenbone.net/rippledj/32/2006_2.png) [@rippledj](https://forum.greenbone.net/u/rippledj)\
**Post date:** [October 17, 2024, 2:34pm UTC](https://forum.greenbone.net/t/updating-feeds-in-portainer/19430/2 "2024-10-17T14:34:29Z")

</div>

> [@Disrupt2471](#):
>
> I have built out my…

Thanks for your post @Disrupt2471 . Unfortunately, for me, this description doesn’t tell the whole story of what you have done. These details are critical to solving the problem. However, for others, they may intuitively know what steps you have taken.

So, have you created your own container registry with your own repositories built from source code, or have you simply ported Greenbone’s publicly provided containers to [Portainer](https://www.portainer.io/)? Since you used use the word **my** Greenbone Container Edition stack, I interpret that to be you have build your own registry.

Otherwise, following the our Greenbone Community Containers [feed update workflow](https://greenbone.github.io/docs/latest/22.4/container/workflows.html#performing-a-feed-synchronization), you can see that the process is rather simple:

```auto
docker compose -f $DOWNLOAD_DIR/docker-compose.yml -p greenbone-community-edition pull notus-data vulnerability-tests scap-data dfn-cert-data cert-bund-data report-formats data-objects
docker compose -f $DOWNLOAD_DIR/docker-compose.yml -p greenbone-community-edition up -d notus-data vulnerability-tests scap-data dfn-cert-data cert-bund-data report-formats data-objects

```

You can re-pull only the container images that hold the feed data. Once the updated container images have been pulled, I believe the `gvmd` container will recognize the changes and import the new data into the PostgreSQL database. Therefore, maybe `gvmd` is unable to see the newly updated data volumes. 🤔

If this doesn’t help, maybe providing more details will provide clarity, or someone else will intuitively understand your issue better.

---

<div class="post-metadata">

**Author:** ![Disrupt2471](https://forum.greenbone.net/letter_avatar/disrupt2471/32/6_449c533f586939b6e5f246632a46421f.png) [@Disrupt2471](https://forum.greenbone.net/u/Disrupt2471)\
**Post date:** [October 17, 2024, 3:29pm UTC](https://forum.greenbone.net/t/updating-feeds-in-portainer/19430/3 "2024-10-17T15:29:49Z")

</div>

Good day and thank you for responding. To build in portainer, you can either create a stack, which adds all the containers to an “application stack”. The other way to setup would be to build off of pre-built containers and they basically just import. Please see below the screenshot of where you would add your docker file text. Once that is there, you can then create the stack. Based off of what is in the dockerfile text it will build out the containers.

 ![image](https://forum.greenbone.net/uploads/default/original/2X/7/7cc77bc260fd562cf113bad222a85908feb75561.png)

---

<div class="post-metadata">

**Author:** ![Disrupt2471](https://forum.greenbone.net/letter_avatar/disrupt2471/32/6_449c533f586939b6e5f246632a46421f.png) [@Disrupt2471](https://forum.greenbone.net/u/Disrupt2471)\
**Post date:** [October 17, 2024, 3:30pm UTC](https://forum.greenbone.net/t/updating-feeds-in-portainer/19430/4 "2024-10-17T15:30:30Z")

</div>

It wouldn’t let me do a second embedded image so here is the continuation of the first post.

Once the containers are built, they look something like this.It just goes out and pulls them from the Greenbone containers. If needed I can provide the .yml file that it was built off.

 ![image](https://forum.greenbone.net/uploads/default/original/2X/f/f55507502e54765ed1e5b514146dbfe5465b645a.png)  
I am not sure why there are soo many that are stopped, but you start them, and the run for a few a min and then stop with exit code 0 like they are supposed to?

---

<div class="post-metadata">

**Author:** ![rippledj](https://forum.greenbone.net/user_avatar/forum.greenbone.net/rippledj/32/2006_2.png) [@rippledj](https://forum.greenbone.net/u/rippledj)\
**Post date:** [October 17, 2024, 3:32pm UTC](https://forum.greenbone.net/t/updating-feeds-in-portainer/19430/5 "2024-10-17T15:32:06Z")

</div>

It’s very interesting to hear about your use case! 🙂 I doubt that I will personally have time to contribute much to your issue, since I’m not familiar with Portainer. However, for anyone who is going to pitch in here, I guess that the `.yml` file will be prerequisite.

---

<div class="post-metadata">

**Author:** ![Disrupt2471](https://forum.greenbone.net/letter_avatar/disrupt2471/32/6_449c533f586939b6e5f246632a46421f.png) [@Disrupt2471](https://forum.greenbone.net/u/Disrupt2471)\
**Post date:** [October 17, 2024, 5:32pm UTC](https://forum.greenbone.net/t/updating-feeds-in-portainer/19430/6 "2024-10-17T17:32:22Z")

</div>

I wonder if it would be the same type of situation if someone built it out in docker desktop since it’s similar to how portainer would run it. Here is my .yml file below. Just paste that into your web configure page on portainer stack creation page and it will create the containers. The only thing I changed was the IP for the web interface for GSA which I omitted from the file below.

services:  
vulnerability-tests:  
image: greenbone/vulnerability-tests  
environment:  
STORAGE\_PATH: /var/lib/openvas/22.04/vt-data/nasl  
volumes:  
- vt\_data\_vol:/mnt

notus-data:  
image: greenbone/notus-data  
volumes:  
- notus\_data\_vol:/mnt

scap-data:  
image: greenbone/scap-data  
volumes:  
- scap\_data\_vol:/mnt

cert-bund-data:  
image: greenbone/cert-bund-data  
volumes:  
- cert\_data\_vol:/mnt

dfn-cert-data:  
image: greenbone/dfn-cert-data  
volumes:  
- cert\_data\_vol:/mnt  
depends\_on:  
- cert-bund-data

data-objects:  
image: greenbone/data-objects  
volumes:  
- data\_objects\_vol:/mnt

report-formats:  
image: greenbone/report-formats  
volumes:  
- data\_objects\_vol:/mnt  
depends\_on:  
- data-objects

gpg-data:  
image: greenbone/gpg-data  
volumes:  
- gpg\_data\_vol:/mnt

redis-server:  
image: greenbone/redis-server  
restart: on-failure  
volumes:  
- redis\_socket\_vol:/run/redis/

pg-gvm:  
image: greenbone/pg-gvm:stable  
restart: on-failure  
volumes:  
- psql\_data\_vol:/var/lib/postgresql  
- psql\_socket\_vol:/var/run/postgresql

gvmd:  
image: greenbone/gvmd:stable  
restart: on-failure  
volumes:  
- gvmd\_data\_vol:/var/lib/gvm  
- scap\_data\_vol:/var/lib/gvm/scap-data/  
- cert\_data\_vol:/var/lib/gvm/cert-data  
- data\_objects\_vol:/var/lib/gvm/data-objects/gvmd  
- vt\_data\_vol:/var/lib/openvas/plugins  
- psql\_data\_vol:/var/lib/postgresql  
- gvmd\_socket\_vol:/run/gvmd  
- ospd\_openvas\_socket\_vol:/run/ospd  
- psql\_socket\_vol:/var/run/postgresql  
depends\_on:  
pg-gvm:  
condition: service\_started  
scap-data:  
condition: service\_completed\_successfully  
cert-bund-data:  
condition: service\_completed\_successfully  
dfn-cert-data:  
condition: service\_completed\_successfully  
data-objects:  
condition: service\_completed\_successfully  
report-formats:  
condition: service\_completed\_successfully

gsa:  
image: greenbone/gsa:stable  
restart: on-failure  
ports:  
- x.x.x.x:9392:80  
volumes:  
- gvmd\_socket\_vol:/run/gvmd  
depends\_on:  
- gvmd

# Sets log level of openvas to the set LOG\_LEVEL within the env

# and changes log output to /var/log/openvas instead /var/log/gvm

# to reduce likelyhood of unwanted log interferences

configure-openvas:  
image: greenbone/openvas-scanner:stable  
volumes:  
- openvas\_data\_vol:/mnt  
- openvas\_log\_data\_vol:/var/log/openvas  
command:  
- /bin/sh  
- -c  
- |  
printf “table\_driven\_lsc = yes\nopenvasd\_server = [http://openvasd:80](http://openvasd:80)\n” \> /mnt/openvas.conf  
sed “s/127/128/” /etc/openvas/openvas\_log.conf | sed ‘s/gvm/openvas/’ \> /mnt/openvas\_log.conf  
chmod 644 /mnt/openvas.conf  
chmod 644 /mnt/openvas\_log.conf  
touch /var/log/openvas/openvas.log  
chmod 666 /var/log/openvas/openvas.log

# shows logs of openvas

openvas:  
image: greenbone/openvas-scanner:stable  
restart: on-failure  
volumes:  
- openvas\_data\_vol:/etc/openvas  
- openvas\_log\_data\_vol:/var/log/openvas  
command:  
- /bin/sh  
- -c  
- |  
cat /etc/openvas/openvas.conf  
tail -f /var/log/openvas/openvas.log  
depends\_on:  
configure-openvas:  
condition: service\_completed\_successfully

openvasd:  
image: greenbone/openvas-scanner:stable  
restart: on-failure  
environment:  
# `service_notus` is set to disable everything but notus,  
# if you want to utilize openvasd directly removed `OPENVASD_MODE`  
OPENVASD\_MODE: service\_notus  
GNUPGHOME: /etc/openvas/gnupg  
LISTENING: 0.0.0.0:80  
volumes:  
- openvas\_data\_vol:/etc/openvas  
- openvas\_log\_data\_vol:/var/log/openvas  
- gpg\_data\_vol:/etc/openvas/gnupg  
- notus\_data\_vol:/var/lib/notus  
# enable port forwarding when you want to use the http api from your host machine  
# ports:  
# - 127.0.0.1:3000:80  
depends\_on:  
vulnerability-tests:  
condition: service\_completed\_successfully  
configure-openvas:  
condition: service\_completed\_successfully  
gpg-data:  
condition: service\_completed\_successfully  
networks:  
default:  
aliases:  
- openvasd

ospd-openvas:  
image: greenbone/ospd-openvas:stable  
restart: on-failure  
hostname: ospd-openvas.local  
cap\_add:  
- NET\_ADMIN # for capturing packages in promiscuous mode  
- NET\_RAW # for raw sockets e.g. used for the boreas alive detection  
security\_opt:  
- seccomp=unconfined  
- apparmor=unconfined  
command:  
[  
“ospd-openvas”,  
“-f”,  
“–config”,  
“/etc/gvm/ospd-openvas.conf”,  
“–notus-feed-dir”,  
“/var/lib/notus/advisories”,  
“-m”,  
“666”  
]  
volumes:  
- gpg\_data\_vol:/etc/openvas/gnupg  
- vt\_data\_vol:/var/lib/openvas/plugins  
- notus\_data\_vol:/var/lib/notus  
- ospd\_openvas\_socket\_vol:/run/ospd  
- redis\_socket\_vol:/run/redis/  
- openvas\_data\_vol:/etc/openvas/  
- openvas\_log\_data\_vol:/var/log/openvas  
depends\_on:  
redis-server:  
condition: service\_started  
gpg-data:  
condition: service\_completed\_successfully  
vulnerability-tests:  
condition: service\_completed\_successfully  
configure-openvas:  
condition: service\_completed\_successfully

gvm-tools:  
image: greenbone/gvm-tools  
volumes:  
- gvmd\_socket\_vol:/run/gvmd  
- ospd\_openvas\_socket\_vol:/run/ospd  
depends\_on:  
- gvmd  
- ospd-openvas

volumes:  
gpg\_data\_vol:  
scap\_data\_vol:  
cert\_data\_vol:  
data\_objects\_vol:  
gvmd\_data\_vol:  
psql\_data\_vol:  
vt\_data\_vol:  
notus\_data\_vol:  
psql\_socket\_vol:  
gvmd\_socket\_vol:  
ospd\_openvas\_socket\_vol:  
redis\_socket\_vol:  
openvas\_data\_vol:  
openvas\_log\_data\_vol:

---

<div class="post-metadata">

**Author:** ![M3iSt3RSL4D3](https://forum.greenbone.net/user_avatar/forum.greenbone.net/m3ist3rsl4d3/32/3725_2.png) [@M3iSt3RSL4D3](https://forum.greenbone.net/u/M3iSt3RSL4D3)\
**Post date:** [October 29, 2024, 2:10pm UTC](https://forum.greenbone.net/t/updating-feeds-in-portainer/19430/7 "2024-10-29T14:10:15Z")

</div>

Following this. I’m having the same concern. Couldn’t “force” update the feeds.

My implementation is practically the same as Disrupt2471:

- get the yaml from [https://greenbone.github.io/docs/latest/\_static/docker-compose-22.4.yml](https://greenbone.github.io/docs/latest/_static/docker-compose-22.4.yml)
- load it up using Portainer-\>create Stack-\>paste yaml
- the only customization i just made was to run it in https/443
- GVM is running perfectly except that the feeds seem to be “aging” - hence wanting to “force” update the feeds.

I tried doing following the workflow to update the feeds using the CLI commands:

> docker compose -f $DOWNLOAD\_DIR/docker-compose.yml -p greenbone-community-edition pull notus-data vulnerability-tests scap-data dfn-cert-data cert-bund-data report-formats data-objects  
> docker compose -f $DOWNLOAD\_DIR/docker-compose.yml -p greenbone-community-edition up -d notus-data vulnerability-tests scap-data dfn-cert-data cert-bund-data report-formats data-objects

but this ended up creating a new “unmanageable” stack in portainer.

Exchanging ideas here. 🙂

---

<div class="post-metadata">

**Author:** ![TreAtW](https://forum.greenbone.net/user_avatar/forum.greenbone.net/treatw/32/2410_2.png) [@TreAtW](https://forum.greenbone.net/u/TreAtW)\
**Post date:** [October 29, 2024, 2:54pm UTC](https://forum.greenbone.net/t/updating-feeds-in-portainer/19430/8 "2024-10-29T14:54:36Z")

</div>

> [@Disrupt2471](#):
>
> ```auto
> vulnerability-tests:
> image: greenbone/vulnerability-tests
> environment:
> STORAGE_PATH: /var/lib/openvas/22.04/vt-data/nasl
> volumes:
> - vt_data_vol:/mnt
> 
> ```

I’m noticing that you’re still using the `greenbone` registry (which doesn’t receive new feeds anymore; all info in the [announcement thread](https://forum.greenbone.net/t/new-registry-community-container/19069)) instead of the new `registry.community.greenbone.net/community` registry. I’d advise that you check out the [updated compose file in the documentation](https://greenbone.github.io/docs/latest/22.4/container/index.html#id17).

Also, I’ve had the issue of feed updates not being picked up on a few occasions, but restarting `ospd-openvas` as per the [troubleshooting documentation](https://greenbone.github.io/docs/latest/22.4/container/troubleshooting.html#vts-are-up-to-date-but-not-visible-on-the-web-interface) did the trick for me every time: `docker compose -f $DOWNLOAD_DIR/docker-compose.yml -p greenbone-community-edition restart ospd-openvas`

Feel free to give it a shot and report back 🙂

---

<div class="post-metadata">

**Author:** ![Disrupt2471](https://forum.greenbone.net/letter_avatar/disrupt2471/32/6_449c533f586939b6e5f246632a46421f.png) [@Disrupt2471](https://forum.greenbone.net/u/Disrupt2471)\
**Post date:** [October 29, 2024, 4:10pm UTC](https://forum.greenbone.net/t/updating-feeds-in-portainer/19430/9 "2024-10-29T16:10:50Z")

</div>

Thanks for pointing that out. Can you confirm I have the syntax correct to pull the new containers with the code below?

```auto
vulnerability-tests:
    image: registry.community.greenbone.net/community/vulnerability-tests
    environment:
        STORAGE_PATH: /var/lib/openvas/22.04/vt-data/nasl
    volumes:
        - vt_data_vol:/mnt

```

Is that how it should look for the container images? Looking to get it correct first before downing the entire system.

---

<div class="post-metadata">

**Author:** ![TreAtW](https://forum.greenbone.net/user_avatar/forum.greenbone.net/treatw/32/2410_2.png) [@TreAtW](https://forum.greenbone.net/u/TreAtW)\
**Post date:** [October 29, 2024, 4:18pm UTC](https://forum.greenbone.net/t/updating-feeds-in-portainer/19430/10 "2024-10-29T16:18:11Z")

</div>

Syntax looks good in the snippet. Of course this is only an excerpt and all entries should be updated accordingly to the new registry. If you want to avoid typos, you can download the current Docker compose file [here](https://greenbone.github.io/docs/latest/_static/docker-compose-22.4.yml) as @M3iSt3RSL4D3 already mentioned.

If you’re afraid of downing the system, download the new compose file into a separate file and check the diff with the currently running file. If only the `image` files have changed to the new registry, you should be good to go. If you wanna test the new compose file without touching your current project, you can also alter the `-p` switch from the commands in the documentation to a different project name, so Docker will create a separate project. 🙂

---

<div class="post-metadata">

**Author:** ![Disrupt2471](https://forum.greenbone.net/letter_avatar/disrupt2471/32/6_449c533f586939b6e5f246632a46421f.png) [@Disrupt2471](https://forum.greenbone.net/u/Disrupt2471)\
**Post date:** [October 30, 2024, 10:48am UTC](https://forum.greenbone.net/t/updating-feeds-in-portainer/19430/11 "2024-10-30T10:48:44Z")

</div>

I updated all of my images to the new string and looks like all is well. The UI is different now but it makes sense since it’s using the new containers. Here is my current feed status.

 ![image](https://forum.greenbone.net/uploads/default/original/2X/d/dfeb152405fcd95d3630796c59adafbdd412a091.png)

Thanks @TreAtW for your help!

---

<div class="post-metadata">

**Author:** ![system](https://forum.greenbone.net/uploads/default/original/2X/4/4660e797edfaea797a8c9965246072ea26732804.png) [@system](https://forum.greenbone.net/u/system)\
**Post date:** [April 7, 2025, 10:23am UTC](https://forum.greenbone.net/t/updating-feeds-in-portainer/19430/12 "2025-04-07T10:23:56Z")

</div>

Closed on April 7, 2025, 10:23am UTC


