Unanttended Upgrade Docker
To configure unattended upgrades for Docker on a Debian-based system, you can add the following line to the 50unattended-upgrades
file. This will ensure that Docker packages are automatically updated when unattended-upgrades runs.
Here are the steps to do this:
-
Open a terminal on your Debian-based system.
-
Use a text editor to open the
50unattended-upgrades
file for editing. You’ll typically find this file in the/etc/apt/apt.conf.d/
directory.
|
|
- Add the following line to the file, which specifies that Docker packages should be automatically upgraded:
|
|
This configuration tells unattended-upgrades to include the Docker repository for automatic updates, in addition to the security and regular updates repositories for your distribution.