Question: How to transfer files to the docker image file
Take docker to install persistent jdbc as an example:
Need to transfer the jdbc drive to
re-create a new container
docker run -d -v /usr/amq:/opt/activemq/amq --name activemq -p 61616:61616 -p 8162:8161 -p 61618:61618 -p 61608:61608 webcenter/activemq
Create a virtual machine local file /usr/amq
mapping to the docker container activemq image /opt/activemq/amq file corresponding
Question: How to transfer files
Use wget method
- Install wget (yum installation)
yum -y install wget
- Find the site you want to download and add the link. For
example, download the activemq persistence protocol jdbc
wget https://dev.mysql.com/get/Downloads/Connector-J/mysql-connector-java-5.1.49.tar.gz
Link: Click