How to copy local files inside docker container
We pass the docker cp command to pass the file outside the container into the docker container
1. View the container ID
docker ps -a
2. Copy the local file to the docker container
docker cp 本地文件路径 容器ID/容器NAME:容器内路径
Example:
docker cp /Users/wuhanxue/Downloads/rabbitmq_delayed_message_exchange-3.9.0.ez 1faca6a70742:/opt/rabbitmq/plugins
or by container name
docker cp /Users/wuhanxue/Downloads/rabbitmq_delayed_message_exchange-3.9.0.ez rabbit:/opt/rabbitmq/plugins