Successfully tested docker.io on hirsute.
With docker.io 20.10.7-0ubuntu1~21.04.2 from hirsute:
$ sudo docker run ubuntu:impish apt-get remove -qqqq --allow-remove-essential e2fsprogs (Reading database ... 4386 files and directories currently installed.) Removing e2fsprogs (1.46.3-1ubuntu3) ... E: Problem executing scripts DPkg::Post-Invoke 'rm -f /var/cache/apt/archives/*.deb /var/cache/apt/archives/partial/*.deb /var/cache/apt/*.bin || true' E: Sub-process returned an error code $ echo $? 100
With docker.io 20.10.7-0ubuntu4~21.04.1 from hirsute-proposed:
$ sudo docker run ubuntu:impish apt-get remove -qqqq --allow-remove-essential e2fsprogs (Reading database ... 4386 files and directories currently installed.) Removing e2fsprogs (1.46.3-1ubuntu3) ... $ echo $? 0
Successfully tested docker.io on hirsute.
With docker.io 20.10.7- 0ubuntu1~ 21.04.2 from hirsute:
$ sudo docker run ubuntu:impish apt-get remove -qqqq --allow- remove- essential e2fsprogs apt/archives/ *.deb /var/cache/ apt/archives/ partial/ *.deb /var/cache/ apt/*.bin || true'
(Reading database ... 4386 files and directories currently installed.)
Removing e2fsprogs (1.46.3-1ubuntu3) ...
E: Problem executing scripts DPkg::Post-Invoke 'rm -f /var/cache/
E: Sub-process returned an error code
$ echo $?
100
With docker.io 20.10.7- 0ubuntu4~ 21.04.1 from hirsute-proposed:
$ sudo docker run ubuntu:impish apt-get remove -qqqq --allow- remove- essential e2fsprogs
(Reading database ... 4386 files and directories currently installed.)
Removing e2fsprogs (1.46.3-1ubuntu3) ...
$ echo $?
0