Updating Docker Containers and the Ubuntu OS

Every time I’ve performed OS updates (apt-get update and apt-get upgrade) the OpenVAS scanner interrupts at 0% with an error that it cannot connect to scanner. This happens even if I perform OS updates immediately after updating the docker containers.

I’m sure there’s a better way to resolve this, and I’d love to hear anyone’s input, but here’s what worked for me…

I figured out a correct “order of operations” to get it to work for me, but it involved redownloading the containers after updating.

  1. Log into the OpenVAS VM with Putty (or equivalent)
  2. Perform OS Update and Upgrade
    Sudo apt-get update
    Sudo apt-get upgrade
  3. Find the Download Directory
  4. Download the Greenbone Community Containers
    docker-compose -f $DOWNLOAD_DIR/docker-compose.yml -p greenbone-community-edition pull
  5. Start the Greenbone Community Containers
    docker-compose -f $DOWNLOAD_DIR/docker-compose.yml -p greenbone-community-edition up -d

This is working and functional, however I’d love to hear input if there’s a better way to do these updates without breaking the app everytime I want to run OS updates.