COPY in Docker: why does this one contain more that 2 arguments?

  docker, dockerfile

In a docker instruction there’s a command COPY and I’ve come accross this one:

COPY --from=my_dir1 
    /dir2/config/file1.yml 
    /dir2/config/dir22 
    /dir2/config/file3 
    /dir2/config/file4 
    /dir2/file5 
    /dir3/

I expected there to be a source and a destination, but here there’re multiple arguments.

What correspond to what? What does this particular command in my example do?

this https://docs.docker.com/engine/reference/builder/#copy doesn’t explain it

Source: Docker Questions

LEAVE A COMMENT