Docker Community Forums

Share and learn in the Docker community.

How to exclude subfolders when using volume?

(Juanpa) #1


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:

(Michael Gorianskyi) #2

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.