--ignore-permissions flag to `docker build` now ignores files that cannot be accessed.

Adds an `--ignore-permissions` flag to `docker build` to ignore permissions errors while creating the context to upload.

Resolves #6521.
No need for `else` since you return in the if. :)