How to exclude subfolders when using volume?

Hi!

I’m running a container

docker run -t -v $(pwd):/home/juanpa/webui $DOCKER_IMAGE

however there are a couple of sub-folder that I don’t need in a container, because of their size I would like to leave them out, how can accomplish this?

thanks in advance! :slight_smile:

Just re-organize your project file structure, I guess.
There is a .dockeringore file, but it’s only used to ignore files for a faster build process.