Docker Community Forums

Share and learn in the Docker community.

.dockerignore does not process "!**" directives correctly


(Vshih) #1

Expected behavior

I expect !**… directives to result in these files being copied to the resulting image.

Actual behavior

These files are not copied.


Docker for Mac: version: mac-v1.12.0-beta17
OS X: version 10.11.5 (build: 15F34)
logs: /tmp/20160704-195104.tar.gz
[OK] docker-cli
[OK] app
[OK] menubar
[OK] virtualization
[OK] system
[OK] osxfs
[OK] db
[OK] slirp
[OK] moby-console
[OK] logs
[OK] vmnetd
[OK] env
[OK] moby
[OK] driver.amd64-linux

Reproducible case:

Steps to reproduce the behavior

Clone, build and run.