That is a nice write up. We use a very similar set up to containerise our embedded tool chains.
Additionally, we use a wrapper script to symlink the current containerised project to the same location in the host system. This ensures, that outputs in the containerised environment points to valid paths in the host:
E. g.:
docker mount:
/home/me/dev/proj1234 > /workspace
symlink in host:
ln -sfn /home/me/dev/proj1234 /workspace
Additionally, we use a wrapper script to symlink the current containerised project to the same location in the host system. This ensures, that outputs in the containerised environment points to valid paths in the host:
E. g.: docker mount: /home/me/dev/proj1234 > /workspace
symlink in host: ln -sfn /home/me/dev/proj1234 /workspace