转载:https://blog.csdn.net/tang05709/article/details/78203599
从主机复制到容器sudo docker cp host_path containerID或容器name:container_path
docker cp /redis/redis.conf redis_slave1:/redis(容器)
从容器复制到主机sudo docker cp containerID
或容器name
:container_path host_path
docker cp redis_slave1:/data/s /redis(主机)