regex - Using Docker ADD command for multiples files -
regex - Using Docker ADD command for multiples files -
i want re-create files images , wan utilize add together command. read in docker documentation regular look add, don't know kind of look can use?
i want this
from registry:5000/ubuntu:14.04 maintainer me # stuffs add together sources/{file1,file2,load_file} /etc/sources/ # more stuffs
note: look wrong did show expect add together command. (i did thinking in shell regular expressions).
so, how can that? can not access link filepath.match. if have these rules, please allow me know?
updatei using this docker docs reference
i using version:
client version: 1.3.0 client api version: 1.15 go version (client): go1.3.3 git commit (client): c78088f os/arch (client): linux/amd64 server version: 1.3.0 server api version: 1.15 go version (server): go1.3.3 git commit (server): c78088f
the add
command , copy
both allow golang's filepath.match
wildcards
you can find number of examples in test code go: https://golang.org/src/pkg/path/filepath/match_test.go
rules reproduced here in china can't access google/golang.org:
'*' matches sequence of non-separator characters '?' matches single non-separator character '[' [ '^' ] { character-range } ']' character class (must non-empty) c matches character c (c != '*', '?', '\\', '[') '\\' c matches character c character-range: c matches character c (c != '\\', '-', ']') '\\' c matches character c lo '-' hi matches character c lo <= c <= hi
regex docker
Comments
Post a Comment