GeekCoders

[Docker] host to machine, machine to host file copy 본문

Linux

[Docker] host to machine, machine to host file copy

령호 2017. 5. 19. 17:37

- host to machine

docker cp filename container:/filename


- machine to host

docker cp contianer:/filename filename



- example

container name : mysql-3306

{

- host to machine

docker cp mysqld.conf mysql-3306:/etc/mysql/mysql.conf.d/mysqld.conf


- machine to host

docker cp mysql-3306:/etc/mysql/mysql.conf.d/mysqld.conf

}


ref : http://stackoverflow.com/questions/22907231/copying-files-from-host-to-docker-container

'Linux' 카테고리의 다른 글

[Linux] shell script, smtp 이용 장애 트래킹  (0) 2016.12.06
[Docker] Docker에서 SVN Checkout  (0) 2016.09.29
[Docker] Docker 설치, 기본 사용  (0) 2016.07.15