Category : persistent-volumes

I’m trying to deploy a small Django app, that creates its own db.sqlite3 database, in a Kubernetes pod. When doing so without a persistent volume to save the db.sqlite3, it works fine but when trying to save it in a persistent volume, the pod outputs django.db.utils.OperationalError: unable to open database file The first problem I ..

Read more

According to https://hub.docker.com/r/bluespice/bluespice-free, I can store to my/data/folder by following docker run -d -p 80:80 -v {/my/data/folder}:/data bluespice/bluespice-free I have created following deployment but not sure how to use persistent volume. apiVersion: apps/v1 kind: Deployment metadata: name: bluespice namespace: default labels: app: bluespice spec: replicas: 1 selector: matchLabels: app: bluespice template: metadata: labels: app: bluespice ..

Read more

I have a docker-compose file below where I have a mariadb with volume. Each time i perform a docker-compose pull and docker-compose up -d i lose the data after updating the image mariadb: image: bitnami/mariadb:latest container_name: mariadb-db ports: – 3303:3306 environment: – "MARIADB_ROOT_PASSWORD=password" – "MARIADB_EXTRA_FLAGS=–max-connect-errors=1000 –max_connections=300" – "MARIADB_DATABASE=mydb" restart: on-failure volumes: – mariadb-data:/var/lib/mysql volumes: mariadb-data: ..

Read more