Why do some Docker images have no VOLUME defined?
问题 I am just starting with Docker, please pardon me if my question is too silly for you. I see some images, like nginx , does not have any VOLUME defined whereas some images like mysql has VOLUME defined in their Dockerfile. How the data or files are managed when there is no volume defined, and what would be their working directory? 回答1: A preferred pattern for many applications you can run in a container is to store no state at all locally. If I have a Web application, and perhaps it takes a