[GH-ISSUE #754] unattended-upgrades is automatically enabled in docker #338

Closed
opened 2026-02-26 10:31:57 +03:00 by kerem · 3 comments
Owner

Originally created by @ivanmaria on GitHub (Jul 31, 2024).
Original GitHub issue: https://github.com/ONLYOFFICE/Docker-DocumentServer/issues/754

Do you want to request a feature or report a bug?
bug

What is the current behavior?
In dockerfile, 'software-properties-common' package is being installed. This library installs 'unattended-upgrades' via recommends.
This library creates a new file '/etc/apt/apt.conf.d/20auto-upgrades' and sets the following config:

APT::Periodic::Update-Package-Lists "1";
APT::Periodic::Unattended-Upgrade "1";

This means apt with try to update the package lists and auto upgrade the packages within the docker container at runtime at specific intervals. Through observation, we found out that this was happening every Thursday 12pm IST across all timezones.

If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem.
NA

What is the expected behavior?
We do not want to auto upgrade packages at runtime since unchecked updates may bring down the whole application down.

Did this work in previous versions of DocumentServer?
no

DocumentServer Docker tag:
Docker-DocumentServer

Host Operating System:
NA

Question:

  1. Can we modify the dockerfile and add '--no-install-recommends' so that the docker is not bloated with such similar packages?
Originally created by @ivanmaria on GitHub (Jul 31, 2024). Original GitHub issue: https://github.com/ONLYOFFICE/Docker-DocumentServer/issues/754 **Do you want to request a *feature* or report a *bug*?** bug **What is the current behavior?** In dockerfile, 'software-properties-common' package is being installed. This library installs 'unattended-upgrades' via recommends. This library creates a new file '/etc/apt/apt.conf.d/20auto-upgrades' and sets the following config: > APT::Periodic::Update-Package-Lists "1"; > APT::Periodic::Unattended-Upgrade "1"; This means apt with try to update the package lists and auto upgrade the packages within the docker container at runtime at specific intervals. Through observation, we found out that this was happening every Thursday 12pm IST across all timezones. **If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem.** NA **What is the expected behavior?** We do not want to auto upgrade packages at runtime since unchecked updates may bring down the whole application down. **Did this work in previous versions of DocumentServer?** no **DocumentServer Docker tag:** Docker-DocumentServer **Host Operating System:** NA **Question:** 1. Can we modify the dockerfile and add '--no-install-recommends' so that the docker is not bloated with such similar packages?
kerem 2026-02-26 10:31:57 +03:00
Author
Owner

@avdddd1111 commented on GitHub (Aug 7, 2024):

Hello @ivanmaria !

I can confirm - this is bug.
Issue #69609.

<!-- gh-comment-id:2273533242 --> @avdddd1111 commented on GitHub (Aug 7, 2024): Hello @ivanmaria ! I can confirm - this is bug. Issue #69609.
Author
Owner

@Rita-Bubnova commented on GitHub (Sep 13, 2024):

This has been fixed (ONLYOFFICE/sdkjs@12e7079) and will be released in the next release.

<!-- gh-comment-id:2348393718 --> @Rita-Bubnova commented on GitHub (Sep 13, 2024): This has been fixed ([ONLYOFFICE/sdkjs@12e7079](https://github.com/ONLYOFFICE/Docker-DocumentServer/commit/7de5df8df9e2b8953e6f9958223900cd1876503e)) and will be released in the next release.
Author
Owner

@Rita-Bubnova commented on GitHub (Oct 21, 2024):

DocumentServer v8.2.0 is released so I close this issue. Feel free to comment or reopen it if you got further questions.

<!-- gh-comment-id:2425931486 --> @Rita-Bubnova commented on GitHub (Oct 21, 2024): DocumentServer v8.2.0 is released so I close this issue. Feel free to comment or reopen it if you got further questions.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/Docker-DocumentServer-ONLYOFFICE#338
No description provided.