docker-archive / compose-cli

Easily run your Compose application to the cloud with compose-cli
Apache License 2.0
956 stars 253 forks source link

Expose ACI nobrl mount option in driver_opts #2180

Closed DennisGaida closed 1 year ago

DennisGaida commented 2 years ago

Description

Currently the driver_opts support the following entries:

  share_name: storageAccount
  storage_account_name: fileShare

Hosting SQLite databases with CIFS storage is problematic if the nobrls option is not set on mount, see the following error descriptions:

Currently there is no way to set different mount options for the Azure File Share, in this particular case nobrl would be needed (see man-page and nobrl option).

I totally understand that the image maintainers may be able to circumvent this behavior by using different methods of accessing SQLite databases, I would just to prefer to set the nobrl mount option and containers such as uptime-kuma, grafana and others (search for azure aci Error: PRAGMA journal_mode = WAL - SQLITE_BUSY: database is locked and you'll find many results) just work.

Steps to reproduce the issue:

  1. Try to compose a container that relies on SQLite, e.g. uptime-kuma
  2. Observe error: PRAGMA journal_mode = WAL - SQLITE_BUSY: database is locked

Additional information you deem important (e.g. issue happens only occasionally):

Example docker-compose:

version: '3.8'

services:
  uptime-kuma:
    image: louislam/uptime-kuma
    container_name: kuma
    restart: unless-stopped
    ports:
      - 3001:3001
    volumes:
      - kuma:/app/data

volumes:
  kuma:
    driver: azure_file
    driver_opts:
      share_name: <sharename>
      storage_account_name: <accountname>
stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] commented 1 year ago

This issue has been automatically closed because it had not recent activity during the stale period.