Copy files and folders between the docker host and the container


Copy the file to the specified container and execute it directly. Copying the container to the host is the same operation. In the opposite direction, you can
docker cp /code/gg.txt containerID:/usr/local/tomcat/webapps/ROOT/

File path copy, It will completely copy all files under the file path to the specified container path. Copying the container to the host is the same operation. In the opposite direction, you can

docker cp /code/profile-service/profile-service-dev/user-profile-war/ target/user-profile-war-gp14_pc-SNAPSHOT/.a1e3d9692269:/usr/local/tomcat/webapps/ROOT/


Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326059272&siteId=291194637
Recommended