Open kinghuang opened 5 years ago
current version of the warning message is here: https://github.com/docker/cli/blob/master/cli/context/tlsdata.go#L65
we may want to look if we can improve the experience with these kind of files (thumbs.db on windows, .DS_Store on mac). When exporting a context to a file/tar/zip, we should make it so that they’re not included.
Description
I recently looked at one of my context bundles' TLS files in Finder on macOS, which created a
.DS_Store
file. The Finder stores view metadata in.DS_Store
files. The Docker CLI then complained on every command invocation about the file.Steps to reproduce the issue:
.DS_Store
to be created.Describe the results you received:
When the
.DS_Store
file is present, every CLI invocation printed a warning about an unknown file.Describe the results you expected:
The CLI should ignore
.DS_Store
files.Additional information you deem important (e.g. issue happens only occasionally):
N/A
Output of
docker version
:Output of
docker info
:N/A
Additional environment details (AWS, VirtualBox, physical, etc.):
Removing the
.DS_Store
file eliminated the warning.