Make docker cp
work more like scp
Usage: docker cp CONTAINER:PATH HOSTPATH
1 Allow the PATH
to contain standard filesystem wildcards, and then expand them on the container side.
2 Allow the HOSTPATH
to be the resulting filename if the daemon sends it a single file.
HOSTPATH
is a dir, which will even be created for you - rather than the name of the resulting file, and wildcards are not expanded.
tmp $ mkdir sven
tmp $ docker cp sven:/etc/* sven
2014/08/25 14:22:37 Error response from daemon: Could not find the file /etc/* in container sven
tmp $ docker cp sven:/etc/passwd sven/banana
tmp $ ls sven/
banana passwd
tmp $ more sven/*
*** sven/banana: directory ***
tmp $ cd sven
sven $ docker cp sven:/etc/* .
2014/08/25 14:22:23 Error response from daemon: Could not find the file /etc/* in container sven
Joshfindit, plup, hoatle, jasonschroeder-sfdc, frgtn and 152 more
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4