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
Similar Posts:
- [Solved] Intellj Building image Error: ADD failed: no source files were specified
- Docker startup container Error response from daemon: OCI runtime create failed: container_ linux.go:349
- nginx Server Start Error: nginx: [emerg] open() “/var/run/nginx/nginx.pid” failed (Linux Restart)
- Docker port is already allocated [How to Solve]
- [Solved] Docker Container Start Error: OCI runtime create failed: container with ID exists
- “Docker build” requires exactly 1 argument [How to Solve]
- [Solved] Nginx Log Error: open() “/opt/Nginx/nginx/nginx.pid” failed (2: No such file or directory)
- [Solved] Nginx Restart Error: nginx: [error] open() “/usr/local/nginx/logs/nginx.pid” failed (2: No such file or directory)
- [Solved] Docker Install Error: failure: repodata/repomd.xml from mirrors.aliyun.com_docker-ce_linux_centos_docker-ce.pro
- [Solved] Nginx: [error] open() "/usr/local/Nginx/logs/Nginx.pid