I want to run the docker with my host account,
Normally I would do it with:
#!/bin/bash
user_home="${HOME:-"$(eval echo "~$(whoami)")"}"
docker run -it --rm \
--env "USER=$(whoami)" \
-u $(id -u ${USER}):$(id -g ${USER}) \
--volume "${user_home}:${user_home}":ro \
--volume /etc/passwd:/etc/passwd:ro \
--volume /etc/group:/etc/group:ro \
"ubuntu" /bin/bash
But now I need to do it on a PC that manages users with NIS (network information services) My user is not present in the /etc/passwd
What would be the best direction? Is it to somehow export users from NIS to some file and map it to /etc/passwd?