Skip to content

Conversation

auk
Copy link

@auk auk commented Mar 24, 2020

tar is more proper tool for files cloning - it preserves owners, permissions, works better with tons of small files

@felipecrs
Copy link
Contributor

The cp -a also preserves these attributes.

@datocrats-org
Copy link

added justification: docker engine uses tar https://docs.docker.com/engine/reference/commandline/export/ and tar is faster than cp https://superuser.com/a/985080

@harmv
Copy link

harmv commented Feb 17, 2023

take care. cp -a of busybox (which is in alpine base image) does not preserve hard links.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants