When attempting to install apt packages in the root filesystem using docker, I get the following error:
Dockerfile:
----------------------
RUN apt install build-essential cmake -y
error
----------------------
Processing triggers for man-db (2.6.7.1-1) ...
terminate called after throwing an instance of 'std::length_error'
what(): basic_string::append
qemu: uncaught target signal 6 (Aborted) - core dumped
Aborted (core dumped)
This error does not appear when I enter the same base image and invoke the same commands.
It would appear there is a difference between a "docker run" and docker build. It would be preferable to be able to continue installing packages using the docker builder instead of having to enter the image and install packages manually.