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