Comment 8 for bug 1949504

Revision history for this message
Julio Lajara (ju2wheels) wrote : Re: [Bug 1949504] Re: linux-purge assumes current kernel needs to be installed in Docker container

We use Ansible inside of Docker to test the automation code we deploy
to actual servers.

On Wed, Nov 3, 2021 at 7:40 AM Jarno Suni <email address hidden> wrote:
>
> BTW why do you want to install kernels in a container, if they are not
> used anyway?
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1949504
>
> Title:
> linux-purge assumes current kernel needs to be installed in Docker
> container
>
> Status in linux-purge:
> Incomplete
>
> Bug description:
> I am unable to run linux-purge inside a Docker container because it
> assumes that the currently running kernel should always be installed
> and properly configured which is not a valid assumption when running
> Ubuntu inside a Docker containrer. When run in a Docker container, its
> using the kernel of the host, therefore your host could be Ubuntu
> 20.04 and the container could be running Ubuntu 16.04. Therefore,
> trying to use the --fix option is not a valid solution in this case
> which is what it suggests when exits with an error because 16.04 wont
> have access to the 20.04 kernel packages in the default upstream
> repos.
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/linux-purge/+bug/1949504/+subscriptions
>