I want to move a file from the host file system to a container. How do I do this?
I tried docker insert, but there doesn't seem to be much documentation on it, and it doesn't appear to support copying local sources. Both of these commands didn't insert anything into /root:
docker insert image file:///path/to/file /root/file
docker insert image /path/to/file /root/file
...or return any indication or error for that matter. Also tried feeding the contents in from stdin, like so:
`docker run -i -t image cat \> /root/file` < /path/to/file
But that didn't work either.
I want to move a file from the host file system to a container. How do I do this?
I tried
docker insert, but there doesn't seem to be much documentation on it, and it doesn't appear to support copying local sources. Both of these commands didn't insert anything into/root:...or return any indication or error for that matter. Also tried feeding the contents in from stdin, like so:
But that didn't work either.