[Command] 將檔案從本機複製到Container


31
views
0
4 months ago by
Description: 將檔案從本機複製到Container

Command: $ docker cp [OPTIONS] SRC_PATH|- CONTAINER:DEST_PATH

Example: $ sudo docker cp /home/qoo/Documents/test.py thirsty_kare:test.py
說明:將本機端位於目錄 /home/qoo/Documents 下的 test.py 檔案複製到 thirsty_kare 這個容器中並取名為 test.py


Result


Similar posts:
Search »