Solution: one file to one file mapping, or create these files for mounting
First docker run -d –name nginx1.0 nginx. Start the nginx mirror, and then execute docker cp nginx:/etc/nginx /usr/local/server/ to copy the directory.
Then delete nginx1.0
Solution: one file to one file mapping, or create these files for mounting
First docker run -d –name nginx1.0 nginx. Start the nginx mirror, and then execute docker cp nginx:/etc/nginx /usr/local/server/ to copy the directory.
Then delete nginx1.0