Which instruction can be used to copy files with permission changes?

  1. COPY --chmod
  2. ADD --perm
  3. RUN cp
  4. USER chmod
Correct answer COPY --chmod

Explanation

`COPY` supports the `--chmod` flag to set file permissions during copying.

Update: Admin added a tag on this question

Topics

By Admin · · 36 views