{"action":"created","issue":{"url":"https://api.github.com/repos/docker/docker/issues/13113","repository_url":"https://api.github.com/repos/docker/docker","labels_url":"https://api.github.com/repos/docker/docker/issues/13113/labels{/name}","comments_url":"https://api.github.com/repos/docker/docker/issues/13113/comments","events_url":"https://api.github.com/repos/docker/docker/issues/13113/events","html_url":"https://github.com/docker/docker/issues/13113","id":74878833,"number":13113,"title":"Ignore file extension in all folders with .dockerignore","user":{"login":"Ralle","id":467309,"avatar_url":"https://avatars.githubusercontent.com/u/467309?v=3","gravatar_id":"","url":"https://api.github.com/users/Ralle","html_url":"https://github.com/Ralle","followers_url":"https://api.github.com/users/Ralle/followers","following_url":"https://api.github.com/users/Ralle/following{/other_user}","gists_url":"https://api.github.com/users/Ralle/gists{/gist_id}","starred_url":"https://api.github.com/users/Ralle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ralle/subscriptions","organizations_url":"https://api.github.com/users/Ralle/orgs","repos_url":"https://api.github.com/users/Ralle/repos","events_url":"https://api.github.com/users/Ralle/events{/privacy}","received_events_url":"https://api.github.com/users/Ralle/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/docker/docker/labels/area/builder","name":"area/builder","color":"0052cc"},{"url":"https://api.github.com/repos/docker/docker/labels/kind/enhancement","name":"kind/enhancement","color":"E8CAAF"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":21,"created_at":"2015-05-10T09:29:23Z","updated_at":"2016-04-25T04:01:08Z","closed_at":"2015-11-13T22:29:34Z","body":"I added *.DS_Store to my .dockerignore file but that only ignores the file in the build directory not in the following sub directories. I have also tried the same with *.pyc to no avail.\r\n\r\nI took a look at the Go Match function ( http://golang.org/pkg/path/filepath/#Match ) and as far as I can tell, *.DS_Store would match any path that ends with .DS_Store, but in Docker it doesn't.\r\n\r\nI am running Docker version 1.6.0, build 4749651 on Mac OS X using Boot2Docker version v1.6.0.\r\n\r\nDescription of problem:\r\n\r\n\r\n`docker version`:\r\nDocker version 1.6.0, build 4749651\r\n\r\n`docker info`:\r\nContainers: 13\r\nImages: 232\r\nStorage Driver: aufs\r\n Root Dir: /mnt/sda1/var/lib/docker/aufs\r\n Backing Filesystem: extfs\r\n Dirs: 258\r\n Dirperm1 Supported: true\r\nExecution Driver: native-0.2\r\nKernel Version: 3.18.11-tinycore64\r\nOperating System: Boot2Docker 1.6.0 (TCL 5.4); master : a270c71 - Thu Apr 16 19:50:36 UTC 2015\r\nCPUs: 4\r\nTotal Memory: 494.6 MiB\r\nName: boot2docker\r\nID: PDMU:VKYP:RD7V:VCTH:AARC:PHZG:FTQF:7A55:MWCO:TJIJ:Z6X2:3IXK\r\nDebug mode (server): true\r\nDebug mode (client): false\r\nFds: 32\r\nGoroutines: 49\r\nSystem Time: Sun May 10 09:33:09 UTC 2015\r\nEventsListeners: 0\r\nInit SHA1: 9145575052383dbf64cede3bac278606472e027c\r\nInit Path: /usr/local/bin/docker\r\nDocker Root Dir: /mnt/sda1/var/lib/docker\r\nUsername: ralle\r\nRegistry: [https://index.docker.io/v1/]\r\n\r\n`uname -a`:\r\nDarwin Rosa.local 14.3.0 Darwin Kernel Version 14.3.0: Mon Mar 23 11:59:05 PDT 2015; root:xnu-2782.20.48~5/RELEASE_X86_64 x86_64\r\n\r\nEnvironment details (AWS, VirtualBox, physical, etc.):\r\nBoot2Docker\r\n\r\nHow reproducible:\r\nEvery time\r\n\r\nSteps to Reproduce:\r\nAdd *.DS_Store to .dockerignore file, and see how sub folder .DS_Store files aren't ignored.\r\n\r\nActual Results:\r\n.DS_Store files in sub folders are added.\r\n\r\nExpected Results:\r\n.DS_Store files in all sub folders are ignored.\r\n\r\nAdditional info:\r\n"},"comment":{"url":"https://api.github.com/repos/docker/docker/issues/comments/214119342","html_url":"https://github.com/docker/docker/issues/13113#issuecomment-214119342","issue_url":"https://api.github.com/repos/docker/docker/issues/13113","id":214119342,"user":{"login":"BryanConradHart","id":17018284,"avatar_url":"https://avatars.githubusercontent.com/u/17018284?v=3","gravatar_id":"","url":"https://api.github.com/users/BryanConradHart","html_url":"https://github.com/BryanConradHart","followers_url":"https://api.github.com/users/BryanConradHart/followers","following_url":"https://api.github.com/users/BryanConradHart/following{/other_user}","gists_url":"https://api.github.com/users/BryanConradHart/gists{/gist_id}","starred_url":"https://api.github.com/users/BryanConradHart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BryanConradHart/subscriptions","organizations_url":"https://api.github.com/users/BryanConradHart/orgs","repos_url":"https://api.github.com/users/BryanConradHart/repos","events_url":"https://api.github.com/users/BryanConradHart/events{/privacy}","received_events_url":"https://api.github.com/users/BryanConradHart/received_events","type":"User","site_admin":false},"created_at":"2016-04-25T04:01:08Z","updated_at":"2016-04-25T04:01:08Z","body":"Does this work with directory matching?\r\nI'm trying to do **/node_modules and I'm still seeing them get copied into my image"}}