Skip to content
www.mytechnote.ru
Menu
  • Administration
    • Scripts
  • Equipment
    • Reviews
    • Instructions
  • Other
  • English
    • English
    • Русский
Menu

How to Bypass Vulnerability Checks When Importing Docker Containers in Astra Linux

When working with Docker in Astra Linux, you may encounter issues while importing containers. For example, the command:

docker load -i container.tar

might be interrupted due to a detected vulnerability. The error may look like this:

directory '/var/lib/docker/overlay2/aa94cbac24f124f2725f0fb78022d5ce3309c75ccd34b6e18ca40ec1d8eb9d0c/diff' contains vulnerabilities! [{oval:astra:def:4374014773234437469147563906627 true Astra Linux – vulnerability in db5.3 }].

The same error can occur when pulling images.

Causes of the Problem

The issue arises when Astra Linux detects vulnerabilities in the container’s content. Astra 1.7 Update 4 introduced the OpenSCAP vulnerability scanner, which checks for vulnerabilities against the oval-db database. The scanner is enabled by default and prohibits further use of the container upon detecting a vulnerability.

Solutions to the Problem

Fixing the Vulnerability

The first option is to try to fix the vulnerability. However, this may be problematic if the image was not created by you.

Bypassing Vulnerability Checks

If fixing the issue is not feasible, you can bypass the vulnerability checks by adding a corresponding setting to the Docker configuration file.

Steps to Bypass the Check

Open or create the file /etc/docker/daemon.json.

Add the following line:

{ "astra-sec-level": 6 }

You can quickly add the line with the command:

sudo cat << EOF > /etc/docker/daemon.json
{ "astra-sec-level" : 6 }
EOF

Restart Docker:

sudo systemctl restart docker

Conclusion

Now you know how to bypass vulnerability checks when importing Docker containers in Astra Linux. This solution can help you continue working without interruptions, although it is always recommended to be cautious about security issues.

Posted on 20.10.202415.11.2024 by sanglyb

Post navigation

← Fixing the polkitd Error When Upgrading Debian from Version 10 to 12
How to Combine All Windows Logs into One File: A Simple Guide →

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Подписывайтесь

Youtube
vk
telegram
github
twitter
rss
  • Форум
  • Об авторе
  • Поддержать автора

Популярные записи

Новые записи

  • How to Extend an LVM Partition in Linux
  • SCCM Reporting Errors After Migrating from SQL Server 2016 to 2019
  • Problem Using PassFiltEx on Older CPUs
  • How to remove attachments from old calendar events in Exchange using a script
  • How to download and install Office 2024 LTSC

Архивы

  • 2026 (3)
  • 2025 (5)
  • 2024 (7)
  • 2023 (30)
  • 2022 (4)
  • 2020 (17)
  • 2017 (82)
  • 2016 (5)
© 2015-2026 www.mytechnote.ru
Использование материалов сайта возможно только с разрешения владельца или обязательна индексируемая, прямая, передающая вес ссылка на материал.