Using docker with users leaves files belonging to the subuid/subgid
docker run -ti --rm \
  -v $PWD:/workdir \
  -v $HOME/.ssh:/root/.ssh \
  --user $(id -u):$(id -g) \
  dockerizedxyz "$@"


As long as you're not doing anything funny with the entrypoint in the container, this will leave files owned as the user that invoked Docker.