How To Share Data Between the Docker Container and the Host
In general, Docker containers are ephemeral, running just as long as it takes for the command issued in a container to complete. By default, any data created inside the container is only available from within the container and only while the container is running.