Step Docker recovery container code image from

Sometimes the need to recover the missing codes from the image codes needed to run the container, in which case only a few simple operations the server running the container, can be used when the extracted code is packaged mirror

  1. View all containers: docker container ls -a
  2. The container into the container to a specified id: docker exec -ti id / bin / bash
  3. Container service to copy a directory within the specified folder: docker container cp id: / usr / local / tomcat / webapps / province-admin / home / test / province-admin

After more than three cloth has been put into the container to extract the code to a specified directory server, download the code from the server to the local you can see the required code

Guess you like

Origin blog.csdn.net/lierwang2017/article/details/94733994