Run the ubuntu container, with your local path mounted at the same location in the container:
docker run \
-it --rm \
-v $(pwd):$(pwd) ubuntu
If you’re running the container using minikube as a replacement for Docker Desktop, you’ll need to open a separate console session first and do:
eval $(minikube docker-env)
minikube mount $(pwd):$(pwd)