I'm new to Docker. Is it possible to embed a sqlite database in a docker container and have it updated every time my script in that container runs?
相关问题
- Docker task in Azure devops won't accept "$(pw
- Unable to run mariadb when mount volume
- Unspecified error (0x80004005) while running a Doc
- What would prevent code running in a Docker contai
- How to reload apache in php-apache docker containe
Dockerfile example to install sqlite3
persist the db file inside host OS folder /home/dbfolder
If you want to persist the data in sqlite, use host directory/file as a data volume Refer "Mount a host directory as a data volume" section in https://docs.docker.com/engine/admin/volumes/volumes/