Copy a Linux host file to a file directory in docker-osc #458

Open
opened 2025-12-29 01:19:22 +01:00 by adam · 2 comments
Owner

Originally created by @chuiqin on GitHub (Jan 14, 2023).

Thank you for developing such a useful tool. But I still feel confused. How do I copy a Linux host file to a file directory in docker-osc? Secondly, I just want to operate docker-osc through the command line, install R in docker-osc, and copy the result generated by R to the host of Linux. Is this process achievable? Looking forward to your reply! Thanks!

Originally created by @chuiqin on GitHub (Jan 14, 2023). Thank you for developing such a useful tool. But I still feel confused. How do I copy a Linux host file to a file directory in docker-osc? Secondly, I just want to operate docker-osc through the command line, install R in docker-osc, and copy the result generated by R to the host of Linux. Is this process achievable? Looking forward to your reply! Thanks!
Author
Owner

@Dems1984 commented on GitHub (Jan 16, 2023):

docker cp /path/to/items/from/Linux xxxxxxx)containerID:/path/to/place/in/container

@Dems1984 commented on GitHub (Jan 16, 2023): docker cp /path/to/items/from/Linux xxxxxxx)containerID:/path/to/place/in/container
Author
Owner

@sickcodes commented on GitHub (Jan 23, 2023):

If you want to move inside mac, setup ssh and use scp. Ad Hoc I just use nginx off the host and download files if I want to

@sickcodes commented on GitHub (Jan 23, 2023): If you want to move inside mac, setup ssh and use `scp`. Ad Hoc I just use nginx off the host and download files if I want to
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/Docker-OSX#458